CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
lib.es2022.error.d.ts74 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference lib="es2021.promise" />18 19interface ErrorOptions {20    cause?: unknown;21}22 23interface Error {24    cause?: unknown;25}26 27interface ErrorConstructor {28    new (message?: string, options?: ErrorOptions): Error;29    (message?: string, options?: ErrorOptions): Error;30}31 32interface EvalErrorConstructor {33    new (message?: string, options?: ErrorOptions): EvalError;34    (message?: string, options?: ErrorOptions): EvalError;35}36 37interface RangeErrorConstructor {38    new (message?: string, options?: ErrorOptions): RangeError;39    (message?: string, options?: ErrorOptions): RangeError;40}41 42interface ReferenceErrorConstructor {43    new (message?: string, options?: ErrorOptions): ReferenceError;44    (message?: string, options?: ErrorOptions): ReferenceError;45}46 47interface SyntaxErrorConstructor {48    new (message?: string, options?: ErrorOptions): SyntaxError;49    (message?: string, options?: ErrorOptions): SyntaxError;50}51 52interface TypeErrorConstructor {53    new (message?: string, options?: ErrorOptions): TypeError;54    (message?: string, options?: ErrorOptions): TypeError;55}56 57interface URIErrorConstructor {58    new (message?: string, options?: ErrorOptions): URIError;59    (message?: string, options?: ErrorOptions): URIError;60}61 62interface AggregateErrorConstructor {63    new (64        errors: Iterable<any>,65        message?: string,66        options?: ErrorOptions,67    ): AggregateError;68    (69        errors: Iterable<any>,70        message?: string,71        options?: ErrorOptions,72    ): AggregateError;73}74