This package has been deprecated

Author message:

This package has change of organization scope. Use @hrc/type-utils instead

@hdoc-react/type-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @hdoc-react/type-utils

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

3.32 kB

Total Files

6

Last publish

Collaborators

  • hdoc