New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hdoc-react/type-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hdoc-react/type-utils

Type utilities used by component packages of @hdoc-react/components

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@hdoc-react/type-utils

Type utilities used by component packages of @hdoc-react/components

Installation

npm install @hdoc-react/type-utils

Usage

import type { Simplify } from "@hdoc-react/type-utils";

type MyType = {
  a: number;
  b: string;
};

type AnotherType = {
  c: boolean;
  d: number;
};

type FlattenedType = Simplify<MyType & AnotherType>;

API

Utilities

  • Simplify - Use to flatten the type output to improve type hints shown in editors.

Common Props

These are common props that can be used in any component.

  • Color - Color variants
  • Size - Size variants

Keywords

typescript

FAQs

Package last updated on 13 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts