Lightweight utility types package with global declarations, Vue support, and no import required.
- 🛠 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
Using pnpm:
pnpm add -D @kikiutils/types
You can also use yarn
, npm
, or bun
.
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 yourtsconfig.json
.
The index file includes both utility types and type-fest
types.
Dict
Nullable
NullableNumber
NullableString
PartialDict
PartialRecord
Readonlyable
ReadonlyDict
ReadonlyPartialRecord
ReadonlyRecord
Arrayable
Except
Promisable
ReadonlyDeep
SetOptional
SetRequired
FilteredKeyPath
Booleanish
ComponentRef
Numberish
ShallowUnwrapRef
UnwrapNestedRefs
UnwrapRef