lib0
Version:
isomorphic utility functions
23 lines • 798 B
TypeScript
export function create(s: string): Error;
/**
* `@type` (not `@param`/`@return`) is required for the `never` return to affect control-flow
* analysis — a call to a never-returning function only terminates a code path if the callee is
* declared with an explicit type annotation.
*
* @throws {Error}
* @type {() => never}
*/
export const methodUnimplemented: () => never;
/**
* @throws {Error}
* @type {() => never}
*/
export const unexpectedCase: () => never;
/**
* `@type` (not `@param`/`@return`) is required — an assertion signature only narrows if the
* callee is declared with an explicit type annotation.
*
* @type {(property: boolean) => asserts property is true}
*/
export const assert: (property: boolean) => asserts property is true;
//# sourceMappingURL=error.d.ts.map