Skip to main content

Built and signed on GitHub Actions

🧰 Utility types

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (3.1.2)
T
Arg

Extract function argument.

T
Arrayable

Arrayable type.

v
AsyncFunction

Async function constructor.

I
AsyncFunctionConstructor

Async function constructor interface.

v
AsyncGeneratorFunction

Async genreator function constructor.

I
AsyncGeneratorFunctionConstructor

Async generator function constructor interface.

T
callback

Callback function.

T
DeepNonNullable

Deep non nullable type.

T
DeepPartial

Deep partial type.

T
DeepReadonly

Deep readonly type.

v
GeneratorFunction

Generator function constructor.

I
GeneratorFunctionConstructor

Generator function constructor interface.

T
IsAny

Check if a type is any.

T
IsNotAny

Check if a type is not any.

T
MapKey

Extract key type from Map.

T
MapValue

Extract value type from Map.

T
NonVoid

Non void type.

T
Nullable

Nullable type.

T
OmitFirstArg

Omit first argument from a function.

T
Optional

Optional type.

T
Promisable

Promisable type.

T
record

Record.

T
RecordValue

Extract value type from Record.

T
rw

Read-write accessor.

T
SetValue

Extract value type from Set.

T
TypedArray

Typed array type.

T
TypeOf

Possible values to typeof operator.

T
WeakMapKey

Extract key type from WeakMap.

T
WeakMapValue

Extract value type from WeakMap.

T
WeakSetValue

Extract value type from WeakSet.

v
AsyncFunction

Async function constructor.

I
AsyncFunctionConstructor

Async function constructor interface.

v
AsyncGeneratorFunction

Async genreator function constructor.

I
AsyncGeneratorFunctionConstructor

Async generator function constructor interface.

v
GeneratorFunction

Generator function constructor.

I
GeneratorFunctionConstructor

Generator function constructor interface.

T
Arg

Extract function argument.

T
Arrayable

Arrayable type.

T
callback

Callback function.

T
DeepNonNullable

Deep non nullable type.

T
DeepPartial

Deep partial type.

T
DeepReadonly

Deep readonly type.

T
IsAny

Check if a type is any.

T
IsNotAny

Check if a type is not any.

T
MapKey

Extract key type from Map.

T
MapValue

Extract value type from Map.

T
NonVoid

Non void type.

T
Nullable

Nullable type.

T
OmitFirstArg

Omit first argument from a function.

T
Optional

Optional type.

T
Promisable

Promisable type.

T
record

Record.

T
RecordValue

Extract value type from Record.

T
rw

Read-write accessor.

T
SetValue

Extract value type from Set.

T
TypedArray

Typed array type.

T
TypeOf

Possible values to typeof operator.

T
WeakMapKey

Extract key type from WeakMap.

T
WeakMapValue

Extract value type from WeakMap.

T
WeakSetValue

Extract value type from WeakSet.