@brix-ui/types

2.2.2 • Public • Published

@brix-ui/types

Runtime and compile time types for Brix UI.

Intended for internal use.


Installation

npm i @brix-ui/types
yarn add @brix-ui/types

Please note that TypeScript is required to use d.ts files

Usage

Most of the types here (represented by as const objects) were created instead of TypeScript's enums to avoid of their drawbacks. However, they are just plain JavaScript objects, which can be enumerated and used just like normal objects. In TypeScript, though, we use them to describe collections of strings (mostly in union types).

Some types, also, have their respective equivalent in the prop-types package.

Package Sidebar

Install

npm i @brix-ui/types

Weekly Downloads

3

Version

2.2.2

License

MIT

Unpacked Size

20.7 kB

Total Files

64

Last publish

Collaborators

  • brix-ui