UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

19 lines (18 loc) 432 B
import type { AdvancedType, JSType } from "../types"; /** * must provide value with type * * @param value * @param fieldName * @param type */ export declare function mustProvide(value: any, fieldName: string, type: JSType): void; /** * must provide some value * * @param value * @param fieldName * @param type * @returns */ export declare function mustProvideN(value: any, fieldName: string, type: AdvancedType): void;