type Void = T | void; type Optional = T | null | undefined; type TernaryValue = V extends W ? T : U; type Nullable = { [P in keyof T]: T[P] | null; }; type KeyOfType = { [K in keyof T]: K extends U ? T[K] extends V ? K : never : never }[keyof T]; type MapOfType = { [K in KeyOfType]: K extends U ? T[K] extends V ? T[K] : never : never }; type UnionOfArray = T extends (infer V extends U)[] ? V : never; type PropertyValueSuffix = { [K in U as `${T}${string & K}`]?: V; }; type Constructor = new(...args: any[]) => T; type IteratorPredicate> = (item: T, index: number, array: V) => U; type FunctionType = (...args: U[]) => T; type FunctionReturn = (...args: U[]) => T; type FunctionArgs = (...args: T) => U; type FunctionBind = (this: T, ...args: unknown[]) => U; type FunctionSelf = (item: T, ...args: unknown[]) => U; type FunctionSort = (a: T, b: T) => number; type ArrayOf = T | T[]; type BoxOf = [T, T, T, T]; type MaybePromise = TernaryValue, V, T, U>; type AnyObject = Record; type PlainObject = Record; type StandardMap = Record; type StringMap = Record; type ObjectMap = Record; type IterableMap = Record; type RecursiveMap = N extends 1 ? Record : RecursiveMap, N extends 4 ? 3 : N extends 3 ? 2 : 1>;