@squarecloud/api
Version:
A NodeJS wrapper for Square Cloud API
11 lines (9 loc) • 397 B
text/typescript
interface AssertionProps {
validate: (value: unknown) => boolean;
expect: string;
value: unknown;
name?: string;
}
declare function assert({ validate, value, expect, name }: AssertionProps): void;
declare function makeAssertion(expect: string, validate: (value: unknown) => boolean): (value: unknown, name?: string) => void;
export { type AssertionProps, assert, makeAssertion };