5.3.0 • Published 6 months ago

@kikiutils/types v5.3.0

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

@kikiutils/types

npm version npm downloads License

Lightweight utility types package with global declarations, Vue support, and no import required.

Features

  • 🛠 Provides commonly used or simplified utility types
  • 🌍 Declares types globally via declare global, no imports needed
  • 📦 Mounts select type-fest types to the global scope
  • 🧩 Includes Vue component instance-related types

Installation

Using pnpm:

pnpm add -D @kikiutils/types

You can also use yarn, npm, or bun.

Usage

Load the types in any .ts or .d.ts file — only once is needed:

import type {} from '@kikiutils/types';
import type {} from '@kikiutils/types/vue';
// Or
export type {} from '@kikiutils/types';
export type {} from '@kikiutils/types/vue';

You can load only the types you need.

!IMPORTANT Make sure this file is located within a path included in the include field of your tsconfig.json.

Types

index

The index file includes both utility types and type-fest types.

  • Dict
  • Nullable
  • NullableNumber
  • NullableString
  • PartialDict
  • PartialRecord
  • Readonlyable
  • ReadonlyDict
  • ReadonlyPartialRecord
  • ReadonlyRecord

type-fest

  • Arrayable
  • Except
  • Promisable
  • ReadonlyDeep
  • SetOptional
  • SetRequired

utils

  • FilteredKeyPath

vue

  • Booleanish
  • ComponentRef
  • Numberish
  • ShallowUnwrapRef
  • UnwrapNestedRefs
  • UnwrapRef

License

MIT License

3.2.2

11 months ago

3.2.1

11 months ago

5.3.0

6 months ago

5.2.0

6 months ago

5.1.0

6 months ago

5.0.1

6 months ago

5.0.0

6 months ago

4.1.0

7 months ago

4.0.0

8 months ago

3.2.0

12 months ago

3.1.1

12 months ago

3.1.0

12 months ago

3.0.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago