A versatile library of utility types for TypeScript.
- 📚 Comprehensive utility types for handling optional and nullable values
- 🧩 Seamless management of Vue component references
Add dependency (example using pnpm).
pnpm add -D @kikiutils/types
You can also use yarn, npm, or bun to add the dependency.
That's it! You're ready to use this package in your project. Check out the instructions for usage below ✨.
Import types in any .ts
or .d.ts
file under the project:
import type {} from '@kikiutils/types';
Important
Ensure the tsconfig.json settings include the file within the compiler's resolution scope.
All types are global and can be used throughout the project after import. Check out the instructions for types below.
-
index (main)
- Dict
- Nullable
- NullableNumber
- NullableString
- UndefinedAble
- UndefinedAbleNumber
- UndefinedAbleString
-
- ComponentRef