mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix(types): add Error.isError
type (#28679)
This commit is contained in:
parent
53b44049b1
commit
65b5d300b8
1 changed files with 11 additions and 0 deletions
11
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
11
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -3746,3 +3746,14 @@ interface DataView {
|
|||
*/
|
||||
setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface ErrorConstructor {
|
||||
/**
|
||||
* Indicates whether the argument provided is a built-in Error instance or not.
|
||||
*/
|
||||
isError(error: unknown): error is Error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue