tra-analysis/website/functions/node_modules/@firebase/util/dist/src/assert.d.ts
2019-01-06 13:14:45 -06:00

13 lines
433 B
TypeScript

/**
* Throws an error if the provided assertion is falsy
* @param {*} assertion The assertion to be tested for falsiness
* @param {!string} message The message to display if the check fails
*/
export declare const assert: (assertion: any, message: any) => void;
/**
* Returns an Error object suitable for throwing.
* @param {string} message
* @return {!Error}
*/
export declare const assertionError: (message: any) => Error;