/kikiutils-node-types

A versatile library of utility types for TypeScript.

Primary LanguageTypeScriptMIT LicenseMIT

@kikiutils/types

npm version npm downloads License

A versatile library of utility types for TypeScript.

Features

  • 📚 Comprehensive utility types for handling optional and nullable values
  • 🧩 Seamless management of Vue component references

Installation

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 ✨.

Usage

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.

Types

  • index (main)

    • Dict
    • Nullable
    • NullableNumber
    • NullableString
    • UndefinedAble
    • UndefinedAbleNumber
    • UndefinedAbleString
  • vue

    • ComponentRef

License

MIT License