UNPKG

propylons-client

Version:
18 lines (17 loc) 509 B
/*! * Propylons * Copyright(c) 2022 Xavier Raffin * MIT Licensed */ /** * Assert member name and type or throw * * @param object object to assert on * @param fieldName name of the field to check the presence of * @param fieldType type of the field to check */ export declare function assertFieldType(object: Record<string, any>, fieldName: string, fieldType: string): void; export declare class MissingPropertyError extends Error { } export declare class PropertyTypeMismatchError extends Error { }