@kikiutils/types

5.3.0 • Public • Published

@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

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

License

MIT License

Package Sidebar

Install

npm i @kikiutils/types

Weekly Downloads

55

Version

5.3.0

License

MIT

Unpacked Size

9.46 kB

Total Files

7

Last publish

Collaborators

  • kiki-kanri