types.ts

view source

Declarations
#

11 declarations

ArrayElement
#

types.ts view source

ArrayElement<T>

type T extends readonly (infer U)[] ? U : never

import type {ArrayElement} from '@fuzdev/fuz_util/types.js';

generics

ArrayElement<T>
T

Assignable
#

types.ts view source

Assignable<T, K> import type {Assignable} from '@fuzdev/fuz_util/types.js';

generics

Assignable<T, K extends keyof T = keyof T>
T
K
constraint keyof T
default keyof T

ClassConstructor
#

types.ts view source

ClassConstructor<TInstance, TArgs> import type {ClassConstructor} from '@fuzdev/fuz_util/types.js';

generics

ClassConstructor<TInstance, TArgs extends Array<any> = Array<any>>
TInstance
TArgs
constraint Array<any>
default Array<any>

(construct)

type new (...args: TArgs): TInstance

args

type TArgs

Defined
#

types.ts view source

Defined<T>

type T extends undefined ? never : T

import type {Defined} from '@fuzdev/fuz_util/types.js';

generics

Defined<T>
T

KeyofUnion
#

NotNull
#

types.ts view source

NotNull<T>

type T extends null ? never : T

import type {NotNull} from '@fuzdev/fuz_util/types.js';

generics

NotNull<T>
T

OmitStrict
#

types.ts view source

OmitStrict<T, K> import type {OmitStrict} from '@fuzdev/fuz_util/types.js';

generics

OmitStrict<T, K extends keyof T>
T
K
constraint keyof T

PartialExcept
#

types.ts view source

PartialExcept<T, K>

type { [P in K]: T[P]; } & { [P in Exclude<keyof T, K>]?: T[P] | undefined; }

import type {PartialExcept} from '@fuzdev/fuz_util/types.js';

generics

PartialExcept<T, K extends keyof T>
T
K
constraint keyof T

PartialOnly
#

types.ts view source

PartialOnly<T, K>

type { [P in K]?: T[P] | undefined; } & { [P in Exclude<keyof T, K>]: T[P]; }

import type {PartialOnly} from '@fuzdev/fuz_util/types.js';

generics

PartialOnly<T, K extends keyof T>
T
K
constraint keyof T

PartialValues
#

types.ts view source

PartialValues<T> import type {PartialValues} from '@fuzdev/fuz_util/types.js';

generics

PartialValues<T>
T

PickUnion
#

Imported by
#