@kakasoo/proto-typescript
Version:
Utility types and implementations based on JavaScript prototypes.
8 lines • 548 B
TypeScript
import { TypedBoolean } from '../classes/typed-boolean.class';
import { TypedNumber } from '../classes/typed-number.class';
import { TypedString } from '../classes/typed-string.class';
import { ArrayType } from './array.type';
export type Primitive = string | boolean | number | undefined | null | bigint | symbol;
export type TypedClass = TypedString<any> | TypedBoolean<any> | TypedNumber<any>;
export type ReadonlyOrNot<T extends any[]> = ArrayType.ElementOf<T>[] | readonly ArrayType.ElementOf<T>[];
//# sourceMappingURL=primitive.type.d.ts.map