html2canvas/src/invariant.ts
2021-07-11 20:25:22 +08:00

6 lines
133 B
TypeScript

export const invariant = (assertion: boolean, error: string): void => {
if (!assertion) {
console.error(error);
}
};