@kikiutils/types

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
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
Booleanish
ComponentRef
Numberish
ShallowUnwrapRef
UnwrapNestedRefs
UnwrapRef
License
MIT License