mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 13:54:05 -06:00
25 lines
573 B
TypeScript
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;
|