@gilbarbara/types
Version:
Reusable typescript typings
7 lines (6 loc) • 299 B
TypeScript
export type NumberOrNull = number | null;
export type StringOrNull = string | null;
export type StringOrNumber = string | number;
export type PlainObject<T = unknown> = Record<string, T>;
export type GenericFunction<T = unknown> = (...arguments_: any[]) => T;
export type VoidFunction = () => void;