ArrayElement<T> type T extends readonly (infer U)[] ? U : never
import type {ArrayElement} from '@fuzdev/fuz_util/types.js'; generics
ArrayElement<T>11 declarations
ArrayElement<T> type T extends readonly (infer U)[] ? U : never
import type {ArrayElement} from '@fuzdev/fuz_util/types.js'; ArrayElement<T>TAssignable<T, K> import type {Assignable} from '@fuzdev/fuz_util/types.js'; Assignable<T, K extends keyof T = keyof T>TKkeyof Tkeyof TClassConstructor<TInstance, TArgs> import type {ClassConstructor} from '@fuzdev/fuz_util/types.js'; ClassConstructor<TInstance, TArgs extends Array<any> = Array<any>>TInstanceTArgsArray<any>Array<any>(construct)type new (...args: TArgs): TInstance
argsTArgsDefined<T> type T extends undefined ? never : T
import type {Defined} from '@fuzdev/fuz_util/types.js'; Defined<T>TKeyofUnion<T> type T extends unknown ? keyof T : never
import type {KeyofUnion} from '@fuzdev/fuz_util/types.js'; Like keyof but works for type unions.
KeyofUnion<T>TNotNull<T> type T extends null ? never : T
import type {NotNull} from '@fuzdev/fuz_util/types.js'; NotNull<T>TOmitStrict<T, K> import type {OmitStrict} from '@fuzdev/fuz_util/types.js'; OmitStrict<T, K extends keyof T>TKkeyof TPartialExcept<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'; PartialExcept<T, K extends keyof T>TKkeyof TPartialOnly<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'; PartialOnly<T, K extends keyof T>TKkeyof TPartialValues<T> import type {PartialValues} from '@fuzdev/fuz_util/types.js'; PartialValues<T>TPickUnion<T, K> type T extends unknown ? K & keyof T extends never ? never : Pick<T, K & keyof T> : never
import type {PickUnion} from '@fuzdev/fuz_util/types.js'; Like Pick but works for type unions.
PickUnion<T, K extends KeyofUnion<T>>TKKeyofUnion<T>