chore(core): optional args for registerErrorClass (#9602)

This commit is contained in:
Luca Casonato 2021-02-25 20:06:06 +01:00 committed by GitHub
parent aa47f8186c
commit 975705a649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 11 deletions

View file

@ -37,7 +37,12 @@ declare global {
jsonOpSync<T>(name: string, params: T): any;
ops(): void;
print(msg: string, code?: number): void;
registerErrorClass(name: string, Ctor: typeof Error): void;
registerErrorClass(
name: string,
Ctor: typeof Error,
// deno-lint-ignore no-explicit-any
...args: any[]
): void;
}
type LanguageServerRequest =