UNPKG

nominal-types

Version:

Nominal types for better typesafety

9 lines (6 loc) 181 B
const M = Symbol(); export type Nominal<Name extends string, Type> = Type & { readonly [M]: [Name]; }; export * from './standardLib'; export * from './proportionalityConstant';