A collection of TypeScript type utilities inspired by a coding style called MuGuaTS. Provides generic tools like If_Num, If_Str, If_Bool, If_Arr, If_Obj, If_Nul, If_Und, If_Never, If_Any, If_Unknown, If_Union, If_Equal, If_Includes, If_Some, If_Every, If_Key, If_Val, If_Readonly, If_Optional, If_Required, If_Mutable, If_Writable, If_Fn, If_Tuple, etc. Current stable version 0.0.12. Release cadence is infrequent; appears to be a side project. Differentiators: opinionated naming convention and one-line/multi-line formatting rules aimed at readability.
npm install typescript-treasureVerified import paths — ran on the pinned version, not inferred.
Demonstrates usage of several type utilities: If_Num, If_Str, If_Bool, If_Equal, If_Includes with example types.
Use correct names like 'If_Num', 'If_Str'.
Use import destructuring and ensure bundler supports tree shaking (e.g., ES modules).
Refer to inline type comments or experiment with the utilities directly.
Run 'npm install typescript-treasure' and ensure 'typescript-treasure' is in node_modules types.
Use import { If_Num } from 'typescript-treasure'.Use If_Num<42> extends true ? ... : ... pattern.
No dependency data recorded yet.