export type Func = (x?: T) => U; export type Primitive = bigint | boolean | null | number | string | symbol | undefined; export type Predicate = (item: T) => boolean;