3.2.0 • Published 8 months ago

@kikiutils/types v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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';
import type {} from '@kikiutils/types/type-fest';
import type {} from '@kikiutils/types/vue';

You can omit the import if the related types are not used.

!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
    • FilteredKeyPath - from filtered-key-path utility
    • Nullable
    • NullableNumber
    • NullableString
    • PartialDict
    • PartialRecord
    • Readonlyable
    • ReadonlyDict
    • ReadonlyRecord
    • Undefinedable
    • UndefinedableNumber
    • UndefinedableString
  • type-fest

    • Arrayable
    • Except
    • Promisable
  • vue

    • ComponentRef

License

MIT License

3.2.0

8 months ago

3.1.1

8 months ago

3.1.0

8 months ago

3.0.0

8 months ago

2.2.1

9 months ago

2.2.0

9 months ago

2.1.0

9 months ago

2.0.1

9 months ago

2.0.0

11 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago