From 33f169beb90814b7f2f62a8c0e3990722ae3db4c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 23 Sep 2024 15:18:52 -0400 Subject: chore: add code generation for @types/deno (#25545) --- cli/tsc/dts/lib.deno.ns.d.ts | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'cli/tsc/dts/lib.deno.ns.d.ts') diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index f44bf9a02..3cca95cdf 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -10,7 +10,7 @@ * * @category Platform */ -declare interface ImportMeta { +interface ImportMeta { /** A string representation of the fully qualified module URL. When the * module is loaded locally, the value will be a file URL (e.g. * `file:///path/module.ts`). @@ -89,7 +89,7 @@ declare interface ImportMeta { * * @category Performance */ -declare interface Performance { +interface Performance { /** Stores a timestamp with the associated name (a "mark"). */ mark(markName: string, options?: PerformanceMarkOptions): PerformanceMark; @@ -109,7 +109,7 @@ declare interface Performance { * * @category Performance */ -declare interface PerformanceMarkOptions { +interface PerformanceMarkOptions { /** Metadata to be included in the mark. */ // deno-lint-ignore no-explicit-any detail?: any; @@ -126,7 +126,7 @@ declare interface PerformanceMarkOptions { * * @category Performance */ -declare interface PerformanceMeasureOptions { +interface PerformanceMeasureOptions { /** Metadata to be included in the measure. */ // deno-lint-ignore no-explicit-any detail?: any; @@ -317,6 +317,7 @@ declare namespace Deno { * * @category Errors */ export class NotADirectory extends Error {} + /** * Raised when trying to perform an operation while the relevant Deno * permission (like `--allow-read`) has not been granted. @@ -326,6 +327,8 @@ declare namespace Deno { * * @category Errors */ export class NotCapable extends Error {} + + export {}; // only export exports } /** The current process ID of this instance of the Deno CLI. @@ -5407,7 +5410,9 @@ declare namespace Deno { * * @category FFI */ - export type NativeStructType = { readonly struct: readonly NativeType[] }; + export interface NativeStructType { + readonly struct: readonly NativeType[]; + } /** * @category FFI @@ -5700,7 +5705,9 @@ declare namespace Deno { * * @category FFI */ - export type PointerObject = { [brand]: T }; + export interface PointerObject { + [brand]: T; + } /** Pointers are represented either with a {@linkcode PointerObject} * object or a `null` if the pointer is null. @@ -6137,4 +6144,6 @@ declare namespace Deno { | CreateHttpClientOptions | (CreateHttpClientOptions & TlsCertifiedKeyPem), ): HttpClient; + + export {}; // only export exports } -- cgit v1.2.3