mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix: Update typings for Deno.errors namespace (#19688)
Follow up to https://github.com/denoland/deno/pull/19514, where I forgot to update type declarations.
This commit is contained in:
parent
0f4051a37a
commit
26c2abef7f
2 changed files with 24 additions and 1 deletions
|
@ -4788,7 +4788,7 @@ fn lsp_completions_auto_import() {
|
||||||
"source": "./b.ts",
|
"source": "./b.ts",
|
||||||
"data": {
|
"data": {
|
||||||
"exportName": "foo",
|
"exportName": "foo",
|
||||||
"exportMapKey": "foo|6812|file:///a/b",
|
"exportMapKey": "foo|6820|file:///a/b",
|
||||||
"moduleSpecifier": "./b.ts",
|
"moduleSpecifier": "./b.ts",
|
||||||
"fileName": "file:///a/b.ts"
|
"fileName": "file:///a/b.ts"
|
||||||
},
|
},
|
||||||
|
|
23
cli/tsc/dts/lib.deno.ns.d.ts
vendored
23
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -261,6 +261,29 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* @category Errors */
|
* @category Errors */
|
||||||
export class NotSupported extends Error {}
|
export class NotSupported extends Error {}
|
||||||
|
/**
|
||||||
|
* Raised when too many symbolic links were encountered when resolving the
|
||||||
|
* filename.
|
||||||
|
*
|
||||||
|
* @category Errors */
|
||||||
|
export class FilesystemLoop extends Error {}
|
||||||
|
/**
|
||||||
|
* Raised when trying to open, create or write to a directory.
|
||||||
|
*
|
||||||
|
* @category Errors */
|
||||||
|
export class IsADirectory extends Error {}
|
||||||
|
/**
|
||||||
|
* Raised when performing a socket operation but the remote host is
|
||||||
|
* not reachable.
|
||||||
|
*
|
||||||
|
* @category Errors */
|
||||||
|
export class NetworkUnreachable extends Error {}
|
||||||
|
/**
|
||||||
|
* Raised when trying to perform an operation on a path that is not a
|
||||||
|
* directory, when directory is required.
|
||||||
|
*
|
||||||
|
* @category Errors */
|
||||||
|
export class NotADirectory extends Error {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The current process ID of this instance of the Deno CLI.
|
/** The current process ID of this instance of the Deno CLI.
|
||||||
|
|
Loading…
Reference in a new issue