2.2.2 • Published 5 years ago
@brix-ui/types v2.2.2
@brix-ui/types
Runtime and compile time types for Brix UI.
Intended for internal use.
Installation
npm i @brix-ui/typesyarn add @brix-ui/typesPlease note that TypeScript is required to use
d.tsfiles
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.