@xylabs/typeof
Version:
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
9 lines • 431 B
TypeScript
import type { FieldType } from './ObjectTypeShape.ts';
/**
* Checks whether a value matches the expected field type, with correct handling for arrays and nulls.
* @param value - The value to check.
* @param expectedType - The expected type string.
* @returns True if the value matches the expected type.
*/
export declare const isType: (value: unknown, expectedType: FieldType) => boolean;
//# sourceMappingURL=isType.d.ts.map