UNPKG

tsuite

Version:

A collection of useful utility functions, All fully typed and documented

9 lines 305 B
//#region src/type-helpers.d.ts declare const _brand: unique symbol; type Brand<T, TBrand> = T & { [_brand]: TBrand; }; type LooseToStrict<T> = T extends any ? string extends T ? never : T : never; type Prettify<T> = { [K in keyof T]: T[K] } & {}; //#endregion export { Brand, LooseToStrict, Prettify };