@gilbarbara/types
Version:
Reusable typescript typings
9 lines (6 loc) • 301 B
text/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;