UNPKG

fhirbuilder

Version:
10 lines (9 loc) 558 B
import { AttributeDefinition } from '../../r4/validators/base/definitions'; /** * @description Asserts that the model fields match the attributes of the model * @param expectedAttributes - the expected attributes of the model * @param instance - the instance of the model * @constructor AssertModelFieldsMatchAttributes * @throws {Error} if the model fields do not match the attributes of the model */ export declare function AssertModelFieldsMatchAttributes<T extends object>(expectedAttributes: readonly AttributeDefinition<T>[], instance: T): void;