quartz/wallet/node_modules/@3rdweb/sdk/dist/common/invariant.d.ts
2022-03-04 20:05:23 +08:00

25 lines
573 B
TypeScript

/**
* Error that may get thrown when an invariant assummption fails.
* @public
*/
export declare class InvariantError extends Error {
/**
* @internal
*/
framesToPop: number;
/**
* @internal
*/
name: string;
/**
* @internal
*/
constructor(message?: string);
}
/**
* @internal
* @param condition - any truthy condition to assert
* @param message - optional message to use if the condition is falsy
*/
export declare function invariant(condition: any, message?: string): asserts condition;