UNPKG

572 BTypeScriptView Raw
1/**
2 * Used to create Error subclasses until the community moves away from ES5.
3 *
4 * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors
5 * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123
6 *
7 * @param createImpl A factory function to create the actual constructor implementation. The returned
8 * function should be a named function that calls `_super` internally.
9 */
10export declare function createErrorClass<T>(createImpl: (_super: any) => any): T;
11//# sourceMappingURL=createErrorClass.d.ts.map
\No newline at end of file