@xylabs/typeof
Version:
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
5 lines • 414 B
TypeScript
/** Union of string literals representing the possible types of an object field. */
export type FieldType = 'string' | 'number' | 'object' | 'symbol' | 'undefined' | 'null' | 'array' | 'function';
/** Describes the expected shape of an object by mapping each key to its expected field type. */
export type ObjectTypeShape = Record<string | number | symbol, FieldType>;
//# sourceMappingURL=ObjectTypeShape.d.ts.map