1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 16:19:12 -05:00

docs: update categories to match new planned sitemap (#23677)

Updating categories for new sitemap as documented here:

https://lucid.app/lucidspark/744b0498-a133-494d-981c-76059dd18885/edit?view_items=jpvBwFdYlNdB&invitationId=inv_50c83415-2aa5-423f-b438-ea156695c08b
This commit is contained in:
Jo Franchetti 2024-05-06 02:56:55 +01:00 committed by GitHub
parent 397be1a22c
commit a69b4646a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 550 additions and 550 deletions

View file

@ -8,7 +8,7 @@
* to ensure that these are still available when using the Deno namespace in
* conjunction with other type libs, like `dom`.
*
* @category ES Modules
* @category Platform
*/
declare interface ImportMeta {
/** A string representation of the fully qualified module URL. When the
@ -322,7 +322,7 @@ declare namespace Deno {
* console.log(Deno.pid);
* ```
*
* @category Runtime Environment
* @category Runtime
*/
export const pid: number;
@ -333,11 +333,11 @@ declare namespace Deno {
* console.log(Deno.ppid);
* ```
*
* @category Runtime Environment
* @category Runtime
*/
export const ppid: number;
/** @category Runtime Environment */
/** @category Runtime */
export interface MemoryUsage {
/** The number of bytes of the current Deno's process resident set size,
* which is the amount of memory occupied in main memory (RAM). */
@ -355,7 +355,7 @@ declare namespace Deno {
* Returns an object describing the memory usage of the Deno process and the
* V8 subsystem measured in bytes.
*
* @category Runtime Environment
* @category Runtime
*/
export function memoryUsage(): MemoryUsage;
@ -369,7 +369,7 @@ declare namespace Deno {
* Requires `allow-sys` permission.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function hostname(): string;
@ -389,7 +389,7 @@ declare namespace Deno {
* On Windows there is no API available to retrieve this information and this method returns `[ 0, 0, 0 ]`.
*
* @tags allow-sys
* @category Observability
* @category Runtime
*/
export function loadavg(): number[];
@ -443,14 +443,14 @@ declare namespace Deno {
* Requires `allow-sys` permission.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function systemMemoryInfo(): SystemMemoryInfo;
/**
* Information returned from a call to {@linkcode Deno.systemMemoryInfo}.
*
* @category Runtime Environment
* @category Runtime
*/
export interface SystemMemoryInfo {
/** Total installed memory in bytes. */
@ -481,7 +481,7 @@ declare namespace Deno {
*
* See: https://no-color.org/
*
* @category Runtime Environment
* @category Runtime
*/
export const noColor: boolean;
@ -497,7 +497,7 @@ declare namespace Deno {
* it should depend sys-info, which may not be desirable.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function osRelease(): string;
@ -511,7 +511,7 @@ declare namespace Deno {
* Requires `allow-sys` permission.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function osUptime(): number;
@ -1462,7 +1462,7 @@ declare namespace Deno {
* Deno.exit(5);
* ```
*
* @category Runtime Environment
* @category Runtime
*/
export function exit(code?: number): never;
@ -1470,7 +1470,7 @@ declare namespace Deno {
* variables.
*
* @tags allow-env
* @category Runtime Environment
* @category Runtime
*/
export interface Env {
/** Retrieve the value of an environment variable.
@ -1549,7 +1549,7 @@ declare namespace Deno {
* variables.
*
* @tags allow-env
* @category Runtime Environment
* @category Runtime
*/
export const env: Env;
@ -1563,7 +1563,7 @@ declare namespace Deno {
* Requires `allow-read` permission.
*
* @tags allow-read
* @category Runtime Environment
* @category Runtime
*/
export function execPath(): string;
@ -1584,7 +1584,7 @@ declare namespace Deno {
* Requires `allow-read` permission.
*
* @tags allow-read
* @category Runtime Environment
* @category Runtime
*/
export function chdir(directory: string | URL): void;
@ -1603,7 +1603,7 @@ declare namespace Deno {
* Requires `allow-read` permission.
*
* @tags allow-read
* @category Runtime Environment
* @category Runtime
*/
export function cwd(): string;
@ -4033,7 +4033,7 @@ declare namespace Deno {
*/
export function truncateSync(name: string, len?: number): void;
/** @category Observability
/** @category Runtime
*
* @deprecated This will be removed in Deno 2.0.
*/
@ -4051,7 +4051,7 @@ declare namespace Deno {
bytesReceived: number;
}
/** @category Observability
/** @category Runtime
*
* @deprecated This will be removed in Deno 2.0.
*/
@ -4082,7 +4082,7 @@ declare namespace Deno {
*
* ```
*
* @category Observability
* @category Runtime
*
* @deprecated This will be removed in Deno 2.0.
*/
@ -4094,7 +4094,7 @@ declare namespace Deno {
*
* @deprecated This will be removed in Deno 2.0.
*
* @category Observability */
* @category Runtime */
export interface ResourceMap {
[rid: number]: unknown;
}
@ -4114,7 +4114,7 @@ declare namespace Deno {
*
* @deprecated This will be removed in Deno 2.0.
*
* @category Observability
* @category Runtime
*/
export function resources(): ResourceMap;
@ -4392,7 +4392,7 @@ declare namespace Deno {
/** Operating signals which can be listened for or sent to sub-processes. What
* signals and what their standard behaviors are OS dependent.
*
* @category Runtime Environment */
* @category Runtime */
export type Signal =
| "SIGABRT"
| "SIGALRM"
@ -4443,7 +4443,7 @@ declare namespace Deno {
* _Note_: On Windows only `"SIGINT"` (CTRL+C) and `"SIGBREAK"` (CTRL+Break)
* are supported.
*
* @category Runtime Environment
* @category Runtime
*/
export function addSignalListener(signal: Signal, handler: () => void): void;
@ -4461,7 +4461,7 @@ declare namespace Deno {
* _Note_: On Windows only `"SIGINT"` (CTRL+C) and `"SIGBREAK"` (CTRL+Break)
* are supported.
*
* @category Runtime Environment
* @category Runtime
*/
export function removeSignalListener(
signal: Signal,
@ -4745,7 +4745,7 @@ declare namespace Deno {
/** Option which can be specified when performing {@linkcode Deno.inspect}.
*
* @category Console and Debugging */
* @category I/O */
export interface InspectOptions {
/** Stylize output with ANSI colors.
*
@ -4831,7 +4831,7 @@ declare namespace Deno {
* Deno.inspect({a: {b: {c: {d: 'hello'}}}}, {depth: 2}); // { a: { b: [Object] } }
* ```
*
* @category Console and Debugging
* @category I/O
*/
export function inspect(value: unknown, options?: InspectOptions): string;
@ -5241,7 +5241,7 @@ declare namespace Deno {
*
* The intended use for the information is for logging and debugging purposes.
*
* @category Runtime Environment
* @category Runtime
*/
export const build: {
/** The [LLVM](https://llvm.org/) target triple, which is the combination
@ -5277,7 +5277,7 @@ declare namespace Deno {
*
* The intended use for the information is for logging and debugging purposes.
*
* @category Runtime Environment
* @category Runtime
*/
export const version: {
/** Deno CLI's version. For example: `"1.26.0"`. */
@ -5312,7 +5312,7 @@ declare namespace Deno {
* [`parseArgs()`](https://jsr.io/@std/cli/doc/parse-args/~/parseArgs) from
* the Deno Standard Library.
*
* @category Runtime Environment
* @category Runtime
*/
export const args: string[];
@ -5325,7 +5325,7 @@ declare namespace Deno {
* {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide}
* for migration instructions.
*
* @category Console and Debugging
* @category I/O
*/
export const customInspect: unique symbol;
@ -5335,7 +5335,7 @@ declare namespace Deno {
* Also see {@linkcode ImportMeta} for other related information.
*
* @tags allow-read
* @category Runtime Environment
* @category Runtime
*/
export const mainModule: string;
@ -6178,14 +6178,14 @@ declare namespace Deno {
/**
* Make the timer of the given `id` block the event loop from finishing.
*
* @category Timers
* @category Runtime
*/
export function refTimer(id: number): void;
/**
* Make the timer of the given `id` not block the event loop from finishing.
*
* @category Timers
* @category Runtime
*/
export function unrefTimer(id: number): void;
@ -6199,7 +6199,7 @@ declare namespace Deno {
* Requires `allow-sys` permission.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function uid(): number | null;
@ -6213,7 +6213,7 @@ declare namespace Deno {
* Requires `allow-sys` permission.
*
* @tags allow-sys
* @category Runtime Environment
* @category Runtime
*/
export function gid(): number | null;

View file

@ -14,14 +14,14 @@
/// <reference lib="deno.websocket" />
/// <reference lib="deno.crypto" />
/** @category WebAssembly */
/** @category WASM */
declare namespace WebAssembly {
/**
* The `WebAssembly.CompileError` object indicates an error during WebAssembly decoding or validation.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/CompileError)
*
* @category WebAssembly
* @category WASM
*/
export class CompileError extends Error {
/** Creates a new `WebAssembly.CompileError` object. */
@ -35,7 +35,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global)
*
* @category WebAssembly
* @category WASM
*/
export class Global {
/** Creates a new `Global` object. */
@ -58,7 +58,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance)
*
* @category WebAssembly
* @category WASM
*/
export class Instance {
/** Creates a new Instance object. */
@ -78,7 +78,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/LinkError)
*
* @category WebAssembly
* @category WASM
*/
export class LinkError extends Error {
/** Creates a new WebAssembly.LinkError object. */
@ -94,7 +94,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory)
*
* @category WebAssembly
* @category WASM
*/
export class Memory {
/** Creates a new `Memory` object. */
@ -116,7 +116,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module)
*
* @category WebAssembly
* @category WASM
*/
export class Module {
/** Creates a new `Module` object. */
@ -144,7 +144,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/RuntimeError)
*
* @category WebAssembly
* @category WASM
*/
export class RuntimeError extends Error {
/** Creates a new `WebAssembly.RuntimeError` object. */
@ -159,7 +159,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table)
*
* @category WebAssembly
* @category WASM
*/
export class Table {
/** Creates a new `Table` object. */
@ -181,7 +181,7 @@ declare namespace WebAssembly {
/** The `GlobalDescriptor` describes the options you can pass to
* `new WebAssembly.Global()`.
*
* @category WebAssembly
* @category WASM
*/
export interface GlobalDescriptor {
mutable?: boolean;
@ -191,7 +191,7 @@ declare namespace WebAssembly {
/** The `MemoryDescriptor` describes the options you can pass to
* `new WebAssembly.Memory()`.
*
* @category WebAssembly
* @category WASM
*/
export interface MemoryDescriptor {
initial: number;
@ -202,7 +202,7 @@ declare namespace WebAssembly {
/** A `ModuleExportDescriptor` is the description of a declared export in a
* `WebAssembly.Module`.
*
* @category WebAssembly
* @category WASM
*/
export interface ModuleExportDescriptor {
kind: ImportExportKind;
@ -212,7 +212,7 @@ declare namespace WebAssembly {
/** A `ModuleImportDescriptor` is the description of a declared import in a
* `WebAssembly.Module`.
*
* @category WebAssembly
* @category WASM
*/
export interface ModuleImportDescriptor {
kind: ImportExportKind;
@ -223,7 +223,7 @@ declare namespace WebAssembly {
/** The `TableDescriptor` describes the options you can pass to
* `new WebAssembly.Table()`.
*
* @category WebAssembly
* @category WASM
*/
export interface TableDescriptor {
element: TableKind;
@ -233,7 +233,7 @@ declare namespace WebAssembly {
/** The value returned from `WebAssembly.instantiate`.
*
* @category WebAssembly
* @category WASM
*/
export interface WebAssemblyInstantiatedSource {
/* A `WebAssembly.Instance` object that contains all the exported WebAssembly functions. */
@ -246,21 +246,21 @@ declare namespace WebAssembly {
module: Module;
}
/** @category WebAssembly */
/** @category WASM */
export type ImportExportKind = "function" | "global" | "memory" | "table";
/** @category WebAssembly */
/** @category WASM */
export type TableKind = "anyfunc";
/** @category WebAssembly */
/** @category WASM */
export type ValueType = "f32" | "f64" | "i32" | "i64";
/** @category WebAssembly */
/** @category WASM */
export type ExportValue = Function | Global | Memory | Table;
/** @category WebAssembly */
/** @category WASM */
export type Exports = Record<string, ExportValue>;
/** @category WebAssembly */
/** @category WASM */
export type ImportValue = ExportValue | number;
/** @category WebAssembly */
/** @category WASM */
export type ModuleImports = Record<string, ImportValue>;
/** @category WebAssembly */
/** @category WASM */
export type Imports = Record<string, ModuleImports>;
/**
@ -271,7 +271,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile)
*
* @category WebAssembly
* @category WASM
*/
export function compile(bytes: BufferSource): Promise<Module>;
@ -283,7 +283,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming)
*
* @category WebAssembly
* @category WASM
*/
export function compileStreaming(
source: Response | Promise<Response>,
@ -300,7 +300,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
*
* @category WebAssembly
* @category WASM
*/
export function instantiate(
bytes: BufferSource,
@ -317,7 +317,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate)
*
* @category WebAssembly
* @category WASM
*/
export function instantiate(
moduleObject: Module,
@ -331,7 +331,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming)
*
* @category WebAssembly
* @category WASM
*/
export function instantiateStreaming(
response: Response | PromiseLike<Response>,
@ -345,7 +345,7 @@ declare namespace WebAssembly {
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate)
*
* @category WebAssembly
* @category WASM
*/
export function validate(bytes: BufferSource): boolean;
}
@ -357,7 +357,7 @@ declare namespace WebAssembly {
* setTimeout(() => { console.log('hello'); }, 500);
* ```
*
* @category Timers
* @category Platform
*/
declare function setTimeout(
/** callback function to execute when timer expires */
@ -375,7 +375,7 @@ declare function setTimeout(
* setInterval(() => { console.log('hello'); }, 500);
* ```
*
* @category Timers
* @category Platform
*/
declare function setInterval(
/** callback function to execute when timer expires */
@ -395,7 +395,7 @@ declare function setInterval(
* clearInterval(id);
* ```
*
* @category Timers
* @category Platform
*/
declare function clearInterval(id?: number): void;
@ -407,11 +407,11 @@ declare function clearInterval(id?: number): void;
* clearTimeout(id);
* ```
*
* @category Timers
* @category Platform
*/
declare function clearTimeout(id?: number): void;
/** @category Scheduling */
/** @category Platform */
declare interface VoidFunction {
(): void;
}
@ -426,7 +426,7 @@ declare interface VoidFunction {
* queueMicrotask(() => { console.log('This event loop stack is complete'); });
* ```
*
* @category Scheduling
* @category Platform
*/
declare function queueMicrotask(func: VoidFunction): void;
@ -439,11 +439,11 @@ declare function queueMicrotask(func: VoidFunction): void;
* dispatchEvent(new Event('unload'));
* ```
*
* @category DOM Events
* @category Events
*/
declare function dispatchEvent(event: Event): boolean;
/** @category DOM APIs */
/** @category Platform */
declare interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
@ -454,13 +454,13 @@ declare interface DOMStringList {
[index: number]: string;
}
/** @category Typed Arrays */
/** @category Platform */
declare type BufferSource = ArrayBufferView | ArrayBuffer;
/** @category Console and Debugging */
/** @category I/O */
declare var console: Console;
/** @category DOM Events */
/** @category Events */
declare interface ErrorEventInit extends EventInit {
message?: string;
filename?: string;
@ -469,7 +469,7 @@ declare interface ErrorEventInit extends EventInit {
error?: any;
}
/** @category DOM Events */
/** @category Events */
declare interface ErrorEvent extends Event {
readonly message: string;
readonly filename: string;
@ -478,25 +478,25 @@ declare interface ErrorEvent extends Event {
readonly error: any;
}
/** @category DOM Events */
/** @category Events */
declare var ErrorEvent: {
readonly prototype: ErrorEvent;
new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** @category Observability */
/** @category Events */
declare interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
/** @category Observability */
/** @category Events */
declare interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
/** @category Observability */
/** @category Events */
declare var PromiseRejectionEvent: {
readonly prototype: PromiseRejectionEvent;
new (
@ -505,24 +505,24 @@ declare var PromiseRejectionEvent: {
): PromiseRejectionEvent;
};
/** @category Web Workers */
/** @category Workers */
declare interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
/** @category Web Workers */
/** @category Workers */
declare interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** @category Web Workers */
/** @category Workers */
declare interface WorkerOptions {
type?: "classic" | "module";
name?: string;
}
/** @category Web Workers */
/** @category Workers */
declare interface Worker extends EventTarget {
onerror: (this: Worker, e: ErrorEvent) => any | null;
onmessage: (this: Worker, e: MessageEvent) => any | null;
@ -552,7 +552,7 @@ declare interface Worker extends EventTarget {
terminate(): void;
}
/** @category Web Workers */
/** @category Workers */
declare var Worker: {
readonly prototype: Worker;
new (specifier: string | URL, options?: WorkerOptions): Worker;
@ -719,25 +719,25 @@ declare var PerformanceMeasure: {
new (): never;
};
/** @category DOM Events */
/** @category Events */
declare interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
/** @category DOM Events */
/** @category Events */
declare interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for
* synthetic events. */
readonly detail: T;
}
/** @category DOM Events */
/** @category Events */
declare var CustomEvent: {
readonly prototype: CustomEvent;
new <T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** @category DOM APIs */
/** @category Platform */
declare interface ErrorConstructor {
/** See https://v8.dev/docs/stack-trace-api#stack-trace-collection-for-custom-exceptions. */
captureStackTrace(error: Object, constructor?: Function): void;

View file

@ -843,7 +843,7 @@ declare namespace Deno {
* | "x11" (Linux) | Xlib `Window` | Xlib `Display*` |
* | "wayland" (Linux) | `wl_surface*` | `wl_display*` |
*
* @category WebGPU
* @category GPU
* @tags unstable
*/
export class UnsafeWindowSurface {
@ -940,7 +940,7 @@ declare namespace Deno {
* const req = await fetch("https://myserver.com", { client });
* ```
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export interface HttpClient extends Disposable {
@ -952,7 +952,7 @@ declare namespace Deno {
*
* The options used when creating a {@linkcode Deno.HttpClient}.
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export interface CreateHttpClientOptions {
@ -991,7 +991,7 @@ declare namespace Deno {
* The definition of a proxy when specifying
* {@linkcode Deno.CreateHttpClientOptions}.
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export interface Proxy {
@ -1006,7 +1006,7 @@ declare namespace Deno {
* Basic authentication credentials to be used with a {@linkcode Deno.Proxy}
* server when specifying {@linkcode Deno.CreateHttpClientOptions}.
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export interface BasicAuth {
@ -1035,7 +1035,7 @@ declare namespace Deno {
* const response = await fetch("https://myserver.com", { client });
* ```
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export function createHttpClient(
@ -1057,7 +1057,7 @@ declare namespace Deno {
* const response = await fetch("https://myserver.com", { client });
* ```
*
* @category Fetch API
* @category Fetch
* @tags unstable
*/
export function createHttpClient(
@ -1269,7 +1269,7 @@ declare namespace Deno {
* can be found in the Deno Manual.
*
* @tags allow-read, allow-write, unstable
* @category KV
* @category Cloud
*/
export function openKv(path?: string): Promise<Deno.Kv>;
@ -1277,7 +1277,7 @@ declare namespace Deno {
*
* CronScheduleExpression is used as the type of `minute`, `hour`,
* `dayOfMonth`, `month`, and `dayOfWeek` in {@linkcode CronSchedule}.
* @category Cron
* @category Cloud
* @tags unstable
*/
export type CronScheduleExpression = number | { exact: number | number[] } | {
@ -1290,7 +1290,7 @@ declare namespace Deno {
*
* CronSchedule is the interface used for JSON format
* cron `schedule`.
* @category Cron
* @category Cloud
* @tags unstable
*/
export interface CronSchedule {
@ -1322,7 +1322,7 @@ declare namespace Deno {
* as specified by interface {@linkcode CronSchedule}, where time is specified
* using UTC time zone.
*
* @category Cron
* @category Cloud
* @tags unstable
*/
export function cron(
@ -1354,7 +1354,7 @@ declare namespace Deno {
* means that a failed execution will be retried at most 3 times, with 1
* second, 5 seconds, and 10 seconds delay between each retry.
*
* @category Cron
* @category Cloud
* @tags unstable
*/
export function cron(
@ -1379,7 +1379,7 @@ declare namespace Deno {
* exceeds this limit, an error will be thrown on the operation that this key
* was passed to.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvKey = readonly KvKeyPart[];
@ -1416,7 +1416,7 @@ declare namespace Deno {
* `1.0` is a number and `0n` is a bigint, and type ordering has precedence
* over the ordering of values within a type.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvKeyPart =
@ -1434,7 +1434,7 @@ declare namespace Deno {
* - `strong` - This operation must be strongly-consistent.
* - `eventual` - Eventually-consistent behavior is allowed.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvConsistencyLevel = "strong" | "eventual";
@ -1449,7 +1449,7 @@ declare namespace Deno {
* starting at a given key). A range selector selects all keys that are
* lexicographically between the given start and end keys.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvListSelector =
@ -1488,7 +1488,7 @@ declare namespace Deno {
* existing value must be of type `Deno.KvU64`. If the key does not exist,
* the value is set to the given value.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvMutation =
@ -1508,7 +1508,7 @@ declare namespace Deno {
* The cursor getter returns the cursor that can be used to resume the
* iteration from the current position in the future.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export class KvListIterator<T> implements AsyncIterableIterator<KvEntry<T>> {
@ -1531,7 +1531,7 @@ declare namespace Deno {
* key-value pair. It can be used to perform atomic operations on the KV store
* by passing it to the `check` method of a {@linkcode Deno.AtomicOperation}.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvEntry<T> = { key: KvKey; value: T; versionstamp: string };
@ -1544,7 +1544,7 @@ declare namespace Deno {
* This is the same as a {@linkcode KvEntry}, but the `value` and `versionstamp`
* fields may be `null` if no value exists for the given key in the KV store.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export type KvEntryMaybe<T> = KvEntry<T> | {
@ -1557,7 +1557,7 @@ declare namespace Deno {
*
* Options for listing key-value pairs in a {@linkcode Deno.Kv}.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export interface KvListOptions {
@ -1612,7 +1612,7 @@ declare namespace Deno {
}
/**
* @category KV
* @category Cloud
* @tags unstable
*/
export interface KvCommitResult {
@ -1622,7 +1622,7 @@ declare namespace Deno {
}
/**
* @category KV
* @category Cloud
* @tags unstable
*/
export interface KvCommitError {
@ -1636,7 +1636,7 @@ declare namespace Deno {
* not match the given versionstamp. A check with a `null` versionstamp checks
* that the key-value pair does not currently exist in the KV store.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export interface AtomicCheck {
@ -1678,7 +1678,7 @@ declare namespace Deno {
* will be a {@linkcode Deno.KvCommitResult} object with a `ok: true` property
* and the versionstamp of the value committed to KV.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export class AtomicOperation {
@ -1795,7 +1795,7 @@ declare namespace Deno {
* of a JSON serialization of that same value. If theses limits are exceeded,
* an exception will be thrown.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export class Kv implements Disposable {
@ -2066,7 +2066,7 @@ declare namespace Deno {
* Wrapper type for 64-bit unsigned integers for use as values in a
* {@linkcode Deno.Kv}.
*
* @category KV
* @category Cloud
* @tags unstable
*/
export class KvU64 {
@ -2283,7 +2283,7 @@ declare namespace Deno {
* way to connect via proxies and use custom TLS certificates.
*
* @tags allow-net, allow-read, unstable
* @category Fetch API
* @category Fetch
*/
declare function fetch(
input: Request | URL | string,
@ -2292,7 +2292,7 @@ declare function fetch(
/** **UNSTABLE**: New API, yet to be vetted.
*
* @category Web Workers
* @category Workers
* @tags unstable
*/
declare interface WorkerOptions {
@ -2333,7 +2333,7 @@ declare interface WorkerOptions {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @category Web Sockets
* @category WebSockets
* @tags unstable
*/
declare interface WebSocketStreamOptions {
@ -2344,7 +2344,7 @@ declare interface WebSocketStreamOptions {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @category Web Sockets
* @category WebSockets
* @tags unstable
*/
declare interface WebSocketConnection {
@ -2356,7 +2356,7 @@ declare interface WebSocketConnection {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @category Web Sockets
* @category WebSockets
* @tags unstable
*/
declare interface WebSocketCloseInfo {
@ -2367,7 +2367,7 @@ declare interface WebSocketCloseInfo {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @tags allow-net, unstable
* @category Web Sockets
* @category WebSockets
*/
declare interface WebSocketStream {
url: string;
@ -2379,7 +2379,7 @@ declare interface WebSocketStream {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @tags allow-net, unstable
* @category Web Sockets
* @category WebSockets
*/
declare var WebSocketStream: {
readonly prototype: WebSocketStream;
@ -2389,7 +2389,7 @@ declare var WebSocketStream: {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @tags allow-net, unstable
* @category Web Sockets
* @category WebSockets
*/
declare interface WebSocketError extends DOMException {
readonly closeCode: number;
@ -2399,7 +2399,7 @@ declare interface WebSocketError extends DOMException {
/** **UNSTABLE**: New API, yet to be vetted.
*
* @tags allow-net, unstable
* @category Web Sockets
* @category WebSockets
*/
declare var WebSocketError: {
readonly prototype: WebSocketError;
@ -4630,7 +4630,7 @@ declare namespace Intl {
* A typed array of 16-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Array {
@ -4945,7 +4945,7 @@ declare interface Float16Array {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16ArrayConstructor {
@ -4988,13 +4988,13 @@ declare interface Float16ArrayConstructor {
): Float16Array;
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare var Float16Array: Float16ArrayConstructor;
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16 {
@ -5014,7 +5014,7 @@ declare interface Float16 {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Constructor {
@ -5034,7 +5034,7 @@ declare interface Float16Constructor {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Array {
@ -5042,7 +5042,7 @@ declare interface Float16Array {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Array {
@ -5055,7 +5055,7 @@ declare interface Float16Array {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16ArrayConstructor {
@ -5063,7 +5063,7 @@ declare interface Float16ArrayConstructor {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Array {
@ -5075,7 +5075,7 @@ declare interface Float16Array {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface Float16Array {
@ -5151,7 +5151,7 @@ declare interface Float16Array {
}
/**
* @category Web APIs
* @category Platform
* @tags unstable
*/
declare interface DataView {

View file

@ -7,14 +7,14 @@
/// <reference lib="esnext" />
/// <reference lib="deno.cache" />
/** @category Web APIs */
/** @category Platform */
declare interface WindowEventMap {
"error": ErrorEvent;
"unhandledrejection": PromiseRejectionEvent;
"rejectionhandled": PromiseRejectionEvent;
}
/** @category Web APIs */
/** @category Platform */
declare interface Window extends EventTarget {
readonly window: Window & typeof globalThis;
readonly self: Window & typeof globalThis;
@ -71,40 +71,40 @@ declare interface Window extends EventTarget {
): void;
}
/** @category Web APIs */
/** @category Platform */
declare var Window: {
readonly prototype: Window;
new (): never;
};
/** @category Web APIs */
/** @category Platform */
declare var window: Window & typeof globalThis;
/** @category Web APIs */
/** @category Platform */
declare var self: Window & typeof globalThis;
/** @category Web APIs */
/** @category Platform */
declare var closed: boolean;
/** @category Web APIs */
/** @category Platform */
declare function close(): void;
/** @category DOM Events */
/** @category Events */
declare var onerror: ((this: Window, ev: ErrorEvent) => any) | null;
/** @category DOM Events */
/** @category Events */
declare var onload: ((this: Window, ev: Event) => any) | null;
/** @category DOM Events */
/** @category Events */
declare var onbeforeunload: ((this: Window, ev: Event) => any) | null;
/** @category DOM Events */
/** @category Events */
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** @category Observability */
/** @category Events */
declare var onunhandledrejection:
| ((this: Window, ev: PromiseRejectionEvent) => any)
| null;
/** @category Web Storage API */
/** @category Storage */
declare var localStorage: Storage;
/** @category Web Storage API */
/** @category Storage */
declare var sessionStorage: Storage;
/** @category Cache API */
/** @category Cache */
declare var caches: CacheStorage;
/** @category Web APIs */
/** @category Platform */
declare interface Navigator {
readonly gpu: GPU;
readonly hardwareConcurrency: number;
@ -113,13 +113,13 @@ declare interface Navigator {
readonly languages: string[];
}
/** @category Web APIs */
/** @category Platform */
declare var Navigator: {
readonly prototype: Navigator;
new (): never;
};
/** @category Web APIs */
/** @category Platform */
declare var navigator: Navigator;
/**
@ -127,7 +127,7 @@ declare var navigator: Navigator;
*
* If the stdin is not interactive, it does nothing.
*
* @category Web APIs
* @category Platform
*
* @param message
*/
@ -140,7 +140,7 @@ declare function alert(message?: string): void;
*
* If the stdin is not interactive, it returns false.
*
* @category Web APIs
* @category Platform
*
* @param message
*/
@ -157,7 +157,7 @@ declare function confirm(message?: string): boolean;
*
* If the stdin is not interactive, it returns null.
*
* @category Web APIs
* @category Platform
*
* @param message
* @param defaultValue
@ -173,7 +173,7 @@ declare function prompt(message?: string, defaultValue?: string): string | null;
* dispatchEvent(new Event('unload'));
* ```
*
* @category DOM Events
* @category Events
*/
declare function addEventListener<
K extends keyof WindowEventMap,
@ -182,7 +182,7 @@ declare function addEventListener<
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
/** @category DOM Events */
/** @category Events */
declare function addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
@ -197,7 +197,7 @@ declare function addEventListener(
* removeEventListener('load', listener);
* ```
*
* @category DOM Events
* @category Events
*/
declare function removeEventListener<
K extends keyof WindowEventMap,
@ -206,7 +206,7 @@ declare function removeEventListener<
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
/** @category DOM Events */
/** @category Events */
declare function removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
@ -219,7 +219,7 @@ declare function removeEventListener(
* reflected on the object it relates to. Accessible via
* `globalThis.location`.
*
* @category Web APIs
* @category Platform
*/
declare interface Location {
/** Returns a DOMStringList object listing the origins of the ancestor
@ -289,7 +289,7 @@ declare interface Location {
* reflected on the object it relates to. Accessible via
* `globalThis.location`.
*
* @category Web APIs
* @category Platform
*/
declare var Location: {
readonly prototype: Location;
@ -298,8 +298,8 @@ declare var Location: {
// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is.
// The types there must first be split into window, worker and global types.
/** @category Web APIs */
/** @category Platform */
declare var location: Location;
/** @category Web APIs */
/** @category Platform */
declare var name: string;

View file

@ -6,13 +6,13 @@
/// <reference lib="esnext" />
/// <reference lib="deno.cache" />
/** @category Web Workers */
/** @category Workers */
declare interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/** @category Web Workers */
/** @category Workers */
declare interface WorkerGlobalScope extends EventTarget {
readonly location: WorkerLocation;
readonly navigator: WorkerNavigator;
@ -54,13 +54,13 @@ declare interface WorkerGlobalScope extends EventTarget {
caches: CacheStorage;
}
/** @category Web Workers */
/** @category Workers */
declare var WorkerGlobalScope: {
readonly prototype: WorkerGlobalScope;
new (): never;
};
/** @category Web APIs */
/** @category Platform */
declare interface WorkerNavigator {
readonly gpu: GPU;
readonly hardwareConcurrency: number;
@ -69,23 +69,23 @@ declare interface WorkerNavigator {
readonly languages: string[];
}
/** @category Web APIs */
/** @category Platform */
declare var WorkerNavigator: {
readonly prototype: WorkerNavigator;
new (): never;
};
/** @category Web APIs */
/** @category Platform */
declare var navigator: WorkerNavigator;
/** @category Web Workers */
/** @category Workers */
declare interface DedicatedWorkerGlobalScopeEventMap
extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** @category Web APIs */
/** @category Platform */
declare interface DedicatedWorkerGlobalScope extends WorkerGlobalScope {
readonly name: string;
onmessage:
@ -125,34 +125,34 @@ declare interface DedicatedWorkerGlobalScope extends WorkerGlobalScope {
): void;
}
/** @category Web APIs */
/** @category Platform */
declare var DedicatedWorkerGlobalScope: {
readonly prototype: DedicatedWorkerGlobalScope;
new (): never;
};
/** @category Web Workers */
/** @category Workers */
declare var name: string;
/** @category Web Workers */
/** @category Workers */
declare var onmessage:
| ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any)
| null;
/** @category Web Workers */
/** @category Workers */
declare var onmessageerror:
| ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any)
| null;
/** @category Web Workers */
/** @category Workers */
declare function close(): void;
/** @category Web Workers */
/** @category Workers */
declare function postMessage(message: any, transfer: Transferable[]): void;
/** @category Web Workers */
/** @category Workers */
declare function postMessage(
message: any,
options?: StructuredSerializeOptions,
): void;
/** @category Web APIs */
/** @category Platform */
declare var navigator: WorkerNavigator;
/** @category Web APIs */
/** @category Platform */
declare var onerror:
| ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any)
| null;
@ -160,9 +160,9 @@ declare var onerror:
declare var onunhandledrejection:
| ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any)
| null;
/** @category Web Workers */
/** @category Workers */
declare var self: WorkerGlobalScope & typeof globalThis;
/** @category DOM Events */
/** @category Events */
declare function addEventListener<
K extends keyof DedicatedWorkerGlobalScopeEventMap,
>(
@ -173,13 +173,13 @@ declare function addEventListener<
) => any,
options?: boolean | AddEventListenerOptions,
): void;
/** @category DOM Events */
/** @category Events */
declare function addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;
/** @category DOM Events */
/** @category Events */
declare function removeEventListener<
K extends keyof DedicatedWorkerGlobalScopeEventMap,
>(
@ -190,7 +190,7 @@ declare function removeEventListener<
) => any,
options?: boolean | EventListenerOptions,
): void;
/** @category DOM Events */
/** @category Events */
declare function removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
@ -203,7 +203,7 @@ declare function removeEventListener(
* is initialized for each worker and is available via the
* WorkerGlobalScope.location property obtained by calling self.location.
*
* @category Web APIs
* @category Platform
*/
declare interface WorkerLocation {
readonly hash: string;
@ -224,7 +224,7 @@ declare interface WorkerLocation {
* is initialized for each worker and is available via the
* WorkerGlobalScope.location property obtained by calling self.location.
*
* @category Web APIs
* @category Platform
*/
declare var WorkerLocation: {
readonly prototype: WorkerLocation;
@ -233,5 +233,5 @@ declare var WorkerLocation: {
// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is.
// The types there must first be split into window, worker and global types.
/** @category Web APIs */
/** @category Platform */
declare var location: WorkerLocation;

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
/// <reference lib="esnext" />
/**
* @category Broadcast Channel
* @category Messaging
* @tags unstable
*/
declare interface BroadcastChannelEventMap {
@ -15,7 +15,7 @@ declare interface BroadcastChannelEventMap {
}
/**
* @category Broadcast Channel
* @category Messaging
* @tags unstable
*/
declare interface BroadcastChannel extends EventTarget {
@ -58,7 +58,7 @@ declare interface BroadcastChannel extends EventTarget {
}
/**
* @category Broadcast Channel
* @category Messaging
* @tags unstable
*/
declare var BroadcastChannel: {

View file

@ -5,10 +5,10 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Cache API */
/** @category Cache */
declare var caches: CacheStorage;
/** @category Cache API */
/** @category Cache */
declare interface CacheStorage {
/** Open a cache storage for the provided name. */
open(cacheName: string): Promise<Cache>;
@ -18,7 +18,7 @@ declare interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
}
/** @category Cache API */
/** @category Cache */
declare interface Cache {
/**
* Put the provided request/response into the cache.
@ -52,19 +52,19 @@ declare interface Cache {
): Promise<boolean>;
}
/** @category Cache API */
/** @category Cache */
declare var Cache: {
readonly prototype: Cache;
new (): never;
};
/** @category Cache API */
/** @category Cache */
declare var CacheStorage: {
readonly prototype: CacheStorage;
new (): never;
};
/** @category Cache API */
/** @category Cache */
declare interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;

View file

@ -5,22 +5,22 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Web APIs */
/** @category Canvas */
declare type ColorSpaceConversion = "default" | "none";
/** @category Web APIs */
/** @category Canvas */
declare type ImageOrientation = "flipY" | "from-image" | "none";
/** @category Web APIs */
/** @category Canvas */
declare type PremultiplyAlpha = "default" | "none" | "premultiply";
/** @category Web APIs */
/** @category Canvas */
declare type ResizeQuality = "high" | "low" | "medium" | "pixelated";
/** @category Web APIs */
/** @category Canvas */
declare type ImageBitmapSource = Blob | ImageData;
/** @category Web APIs */
/** @category Canvas */
declare interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
@ -30,12 +30,12 @@ declare interface ImageBitmapOptions {
resizeWidth?: number;
}
/** @category Web APIs */
/** @category Canvas */
declare function createImageBitmap(
image: ImageBitmapSource,
options?: ImageBitmapOptions,
): Promise<ImageBitmap>;
/** @category Web APIs */
/** @category Canvas */
declare function createImageBitmap(
image: ImageBitmapSource,
sx: number,
@ -45,14 +45,14 @@ declare function createImageBitmap(
options?: ImageBitmapOptions,
): Promise<ImageBitmap>;
/** @category Web APIs */
/** @category Canvas */
declare interface ImageBitmap {
readonly height: number;
readonly width: number;
close(): void;
}
/** @category Web APIs */
/** @category Canvas */
declare var ImageBitmap: {
prototype: ImageBitmap;
new (): ImageBitmap;

View file

@ -5,7 +5,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Console and Debugging */
/** @category I/O */
declare interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;

View file

@ -5,26 +5,26 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Web Crypto API */
/** @category Crypto */
declare var crypto: Crypto;
/** @category Web Crypto API */
/** @category Crypto */
declare interface Algorithm {
name: string;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface KeyAlgorithm {
name: string;
}
/** @category Web Crypto API */
/** @category Crypto */
declare type AlgorithmIdentifier = string | Algorithm;
/** @category Web Crypto API */
/** @category Crypto */
declare type HashAlgorithmIdentifier = AlgorithmIdentifier;
/** @category Web Crypto API */
/** @category Crypto */
declare type KeyType = "private" | "public" | "secret";
/** @category Web Crypto API */
/** @category Crypto */
declare type KeyUsage =
| "decrypt"
| "deriveBits"
@ -34,19 +34,19 @@ declare type KeyUsage =
| "unwrapKey"
| "verify"
| "wrapKey";
/** @category Web Crypto API */
/** @category Crypto */
declare type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
/** @category Web Crypto API */
/** @category Crypto */
declare type NamedCurve = string;
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface JsonWebKey {
alg?: string;
crv?: string;
@ -68,129 +68,129 @@ declare interface JsonWebKey {
y?: string;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesGcmParams extends Algorithm {
iv: BufferSource;
additionalData?: BufferSource;
tagLength?: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: Uint8Array;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaPssParams extends Algorithm {
saltLength: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaOaepParams extends Algorithm {
label?: Uint8Array;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: Uint8Array;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesDerivedKeyParams extends Algorithm {
length: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesKeyGenParams extends Algorithm {
length: number;
}
/** @category Web Crypto API */
/** @category Crypto */
declare interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
@ -198,7 +198,7 @@ declare interface AesKeyAlgorithm extends KeyAlgorithm {
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic
* key.
*
* @category Web Crypto API
* @category Crypto
*/
declare interface CryptoKey {
readonly algorithm: KeyAlgorithm;
@ -207,7 +207,7 @@ declare interface CryptoKey {
readonly usages: KeyUsage[];
}
/** @category Web Crypto API */
/** @category Crypto */
declare var CryptoKey: {
readonly prototype: CryptoKey;
new (): never;
@ -216,14 +216,14 @@ declare var CryptoKey: {
/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for
* an asymmetric cryptography algorithm, also known as a public-key algorithm.
*
* @category Web Crypto API
* @category Crypto
*/
declare interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
/** @category Web Crypto API */
/** @category Crypto */
declare var CryptoKeyPair: {
readonly prototype: CryptoKeyPair;
new (): never;
@ -233,7 +233,7 @@ declare var CryptoKeyPair: {
* functions. It is accessed via the Crypto.subtle properties available in a
* window context (via Window.crypto).
*
* @category Web Crypto API
* @category Crypto
*/
declare interface SubtleCrypto {
generateKey(
@ -367,13 +367,13 @@ declare interface SubtleCrypto {
): Promise<CryptoKey>;
}
/** @category Web Crypto API */
/** @category Crypto */
declare var SubtleCrypto: {
readonly prototype: SubtleCrypto;
new (): never;
};
/** @category Web Crypto API */
/** @category Crypto */
declare interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues<
@ -393,7 +393,7 @@ declare interface Crypto {
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
/** @category Web Crypto API */
/** @category Crypto */
declare var Crypto: {
readonly prototype: Crypto;
new (): never;

View file

@ -5,7 +5,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category DOM APIs */
/** @category Platform */
declare interface DomIterable<K, V> {
keys(): IterableIterator<K>;
values(): IterableIterator<V>;
@ -17,7 +17,7 @@ declare interface DomIterable<K, V> {
): void;
}
/** @category Fetch API */
/** @category Fetch */
declare type FormDataEntryValue = File | string;
/** Provides a way to easily construct a set of key/value pairs representing
@ -25,7 +25,7 @@ declare type FormDataEntryValue = File | string;
* XMLHttpRequest.send() method. It uses the same format a form would use if the
* encoding type were set to "multipart/form-data".
*
* @category Fetch API
* @category Fetch
*/
declare interface FormData extends DomIterable<string, FormDataEntryValue> {
append(name: string, value: string | Blob, fileName?: string): void;
@ -36,13 +36,13 @@ declare interface FormData extends DomIterable<string, FormDataEntryValue> {
set(name: string, value: string | Blob, fileName?: string): void;
}
/** @category Fetch API */
/** @category Fetch */
declare var FormData: {
readonly prototype: FormData;
new (): FormData;
};
/** @category Fetch API */
/** @category Fetch */
declare interface Body {
/** A simple getter used to expose a `ReadableStream` of the body contents. */
readonly body: ReadableStream<Uint8Array> | null;
@ -72,7 +72,7 @@ declare interface Body {
text(): Promise<string>;
}
/** @category Fetch API */
/** @category Fetch */
declare type HeadersInit = Iterable<string[]> | Record<string, string>;
/** This Fetch API interface allows you to perform various actions on HTTP
@ -83,7 +83,7 @@ declare type HeadersInit = Iterable<string[]> | Record<string, string>;
* methods of this interface, header names are matched by case-insensitive byte
* sequence.
*
* @category Fetch API
* @category Fetch
*/
declare interface Headers extends DomIterable<string, string> {
/** Appends a new value onto an existing header inside a `Headers` object, or
@ -118,16 +118,16 @@ declare interface Headers extends DomIterable<string, string> {
* methods of this interface, header names are matched by case-insensitive byte
* sequence.
*
* @category Fetch API
* @category Fetch
*/
declare var Headers: {
readonly prototype: Headers;
new (init?: HeadersInit): Headers;
};
/** @category Fetch API */
/** @category Fetch */
declare type RequestInfo = Request | string;
/** @category Fetch API */
/** @category Fetch */
declare type RequestCache =
| "default"
| "force-cache"
@ -135,13 +135,13 @@ declare type RequestCache =
| "no-store"
| "only-if-cached"
| "reload";
/** @category Fetch API */
/** @category Fetch */
declare type RequestCredentials = "include" | "omit" | "same-origin";
/** @category Fetch API */
/** @category Fetch */
declare type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
/** @category Fetch API */
/** @category Fetch */
declare type RequestRedirect = "error" | "follow" | "manual";
/** @category Fetch API */
/** @category Fetch */
declare type ReferrerPolicy =
| ""
| "no-referrer"
@ -152,7 +152,7 @@ declare type ReferrerPolicy =
| "strict-origin"
| "strict-origin-when-cross-origin"
| "unsafe-url";
/** @category Fetch API */
/** @category Fetch */
declare type BodyInit =
| Blob
| BufferSource
@ -160,7 +160,7 @@ declare type BodyInit =
| URLSearchParams
| ReadableStream<Uint8Array>
| string;
/** @category Fetch API */
/** @category Fetch */
declare type RequestDestination =
| ""
| "audio"
@ -181,7 +181,7 @@ declare type RequestDestination =
| "worker"
| "xslt";
/** @category Fetch API */
/** @category Fetch */
declare interface RequestInit {
/**
* A BodyInit object or null to set request's body.
@ -248,7 +248,7 @@ declare interface RequestInit {
/** This Fetch API interface represents a resource request.
*
* @category Fetch API
* @category Fetch
*/
declare interface Request extends Body {
/**
@ -338,21 +338,21 @@ declare interface Request extends Body {
/** This Fetch API interface represents a resource request.
*
* @category Fetch API
* @category Fetch
*/
declare var Request: {
readonly prototype: Request;
new (input: RequestInfo | URL, init?: RequestInit): Request;
};
/** @category Fetch API */
/** @category Fetch */
declare interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
/** @category Fetch API */
/** @category Fetch */
declare type ResponseType =
| "basic"
| "cors"
@ -363,7 +363,7 @@ declare type ResponseType =
/** This Fetch API interface represents the response to a request.
*
* @category Fetch API
* @category Fetch
*/
declare interface Response extends Body {
readonly headers: Headers;
@ -378,7 +378,7 @@ declare interface Response extends Body {
/** This Fetch API interface represents the response to a request.
*
* @category Fetch API
* @category Fetch
*/
declare var Response: {
readonly prototype: Response;
@ -399,7 +399,7 @@ declare var Response: {
* ```
*
* @tags allow-net, allow-read
* @category Fetch API
* @category Fetch
*/
declare function fetch(
input: URL | Request | string,
@ -407,14 +407,14 @@ declare function fetch(
): Promise<Response>;
/**
* @category Fetch API
* @category Fetch
*/
declare interface EventSourceInit {
withCredentials?: boolean;
}
/**
* @category Fetch API
* @category Fetch
*/
declare interface EventSourceEventMap {
"error": Event;
@ -423,7 +423,7 @@ declare interface EventSourceEventMap {
}
/**
* @category Fetch API
* @category Fetch
*/
declare interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
@ -481,7 +481,7 @@ declare interface EventSource extends EventTarget {
}
/**
* @category Fetch API
* @category Fetch
*/
declare var EventSource: {
prototype: EventSource;

View file

@ -5,7 +5,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Web APIs */
/** @category URL */
declare interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter.
*
@ -157,7 +157,7 @@ declare interface URLSearchParams {
size: number;
}
/** @category Web APIs */
/** @category URL */
declare var URLSearchParams: {
readonly prototype: URLSearchParams;
new (
@ -168,7 +168,7 @@ declare var URLSearchParams: {
/** The URL interface represents an object providing static methods used for
* creating object URLs.
*
* @category Web APIs
* @category URL
*/
declare interface URL {
hash: string;
@ -190,7 +190,7 @@ declare interface URL {
/** The URL interface represents an object providing static methods used for
* creating object URLs.
*
* @category Web APIs
* @category URL
*/
declare var URL: {
readonly prototype: URL;
@ -201,7 +201,7 @@ declare var URL: {
revokeObjectURL(url: string): void;
};
/** @category Web APIs */
/** @category URL */
declare interface URLPatternInit {
protocol?: string;
username?: string;
@ -214,10 +214,10 @@ declare interface URLPatternInit {
baseURL?: string;
}
/** @category Web APIs */
/** @category URL */
declare type URLPatternInput = string | URLPatternInit;
/** @category Web APIs */
/** @category URL */
declare interface URLPatternComponentResult {
input: string;
groups: Record<string, string | undefined>;
@ -225,7 +225,7 @@ declare interface URLPatternComponentResult {
/** `URLPatternResult` is the object returned from `URLPattern.exec`.
*
* @category Web APIs
* @category URL
*/
declare interface URLPatternResult {
/** The inputs provided when matching. */
@ -277,7 +277,7 @@ declare interface URLPatternResult {
* console.log(pattern.test("https://blog.example.com/article/123")); // true
* ```
*
* @category Web APIs
* @category URL
*/
declare interface URLPattern {
/**
@ -373,7 +373,7 @@ declare interface URLPattern {
* console.log(pattern.test("https://blog.example.com/article/123")); // true
* ```
*
* @category Web APIs
* @category URL
*/
declare var URLPattern: {
readonly prototype: URLPattern;

View file

@ -5,7 +5,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Web APIs */
/** @category Platform */
declare interface DOMException extends Error {
readonly name: string;
readonly message: string;
@ -37,7 +37,7 @@ declare interface DOMException extends Error {
readonly DATA_CLONE_ERR: 25;
}
/** @category Web APIs */
/** @category Platform */
declare var DOMException: {
readonly prototype: DOMException;
new (message?: string, name?: string): DOMException;
@ -68,7 +68,7 @@ declare var DOMException: {
readonly DATA_CLONE_ERR: 25;
};
/** @category DOM Events */
/** @category Events */
declare interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
@ -77,7 +77,7 @@ declare interface EventInit {
/** An event which takes place in the DOM.
*
* @category DOM Events
* @category Events
*/
declare interface Event {
/** Returns true or false depending on how event was initialized. True if
@ -138,7 +138,7 @@ declare interface Event {
/** An event which takes place in the DOM.
*
* @category DOM Events
* @category Events
*/
declare var Event: {
readonly prototype: Event;
@ -153,7 +153,7 @@ declare var Event: {
* EventTarget is a DOM interface implemented by objects that can receive events
* and may have listeners for them.
*
* @category DOM Events
* @category Events
*/
declare interface EventTarget {
/** Appends an event listener for events whose type attribute value is type.
@ -201,41 +201,41 @@ declare interface EventTarget {
* EventTarget is a DOM interface implemented by objects that can receive events
* and may have listeners for them.
*
* @category DOM Events
* @category Events
*/
declare var EventTarget: {
readonly prototype: EventTarget;
new (): EventTarget;
};
/** @category DOM Events */
/** @category Events */
declare interface EventListener {
(evt: Event): void | Promise<void>;
}
/** @category DOM Events */
/** @category Events */
declare interface EventListenerObject {
handleEvent(evt: Event): void | Promise<void>;
}
/** @category DOM Events */
/** @category Events */
declare type EventListenerOrEventListenerObject =
| EventListener
| EventListenerObject;
/** @category DOM Events */
/** @category Events */
declare interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
/** @category DOM Events */
/** @category Events */
declare interface EventListenerOptions {
capture?: boolean;
}
/** @category DOM Events */
/** @category Events */
declare interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
@ -246,7 +246,7 @@ declare interface ProgressEventInit extends EventInit {
* (for an XMLHttpRequest, or the loading of the underlying resource of an
* <img>, <audio>, <video>, <style> or <link>).
*
* @category DOM Events
* @category Events
*/
declare interface ProgressEvent<T extends EventTarget = EventTarget>
extends Event {
@ -260,7 +260,7 @@ declare interface ProgressEvent<T extends EventTarget = EventTarget>
* (for an XMLHttpRequest, or the loading of the underlying resource of an
* <img>, <audio>, <video>, <style> or <link>).
*
* @category DOM Events
* @category Events
*/
declare var ProgressEvent: {
readonly prototype: ProgressEvent;
@ -273,7 +273,7 @@ declare var ProgressEvent: {
* console.log(atob("aGVsbG8gd29ybGQ=")); // outputs 'hello world'
* ```
*
* @category Encoding API
* @category Encoding
*/
declare function atob(s: string): string;
@ -283,22 +283,22 @@ declare function atob(s: string): string;
* console.log(btoa("hello world")); // outputs "aGVsbG8gd29ybGQ="
* ```
*
* @category Encoding API
* @category Encoding
*/
declare function btoa(s: string): string;
/** @category Encoding API */
/** @category Encoding */
declare interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
/** @category Encoding API */
/** @category Encoding */
declare interface TextDecodeOptions {
stream?: boolean;
}
/** @category Encoding API */
/** @category Encoding */
declare interface TextDecoder {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
@ -311,19 +311,19 @@ declare interface TextDecoder {
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
/** @category Encoding API */
/** @category Encoding */
declare var TextDecoder: {
readonly prototype: TextDecoder;
new (label?: string, options?: TextDecoderOptions): TextDecoder;
};
/** @category Encoding API */
/** @category Encoding */
declare interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
/** @category Encoding API */
/** @category Encoding */
declare interface TextEncoder {
/** Returns "utf-8". */
readonly encoding: "utf-8";
@ -332,13 +332,13 @@ declare interface TextEncoder {
encodeInto(input: string, dest: Uint8Array): TextEncoderEncodeIntoResult;
}
/** @category Encoding API */
/** @category Encoding */
declare var TextEncoder: {
readonly prototype: TextEncoder;
new (): TextEncoder;
};
/** @category Encoding API */
/** @category Encoding */
declare interface TextDecoderStream {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
@ -351,13 +351,13 @@ declare interface TextDecoderStream {
readonly [Symbol.toStringTag]: string;
}
/** @category Encoding API */
/** @category Encoding */
declare var TextDecoderStream: {
readonly prototype: TextDecoderStream;
new (label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** @category Encoding API */
/** @category Encoding */
declare interface TextEncoderStream {
/** Returns "utf-8". */
readonly encoding: "utf-8";
@ -366,7 +366,7 @@ declare interface TextEncoderStream {
readonly [Symbol.toStringTag]: string;
}
/** @category Encoding API */
/** @category Encoding */
declare var TextEncoderStream: {
readonly prototype: TextEncoderStream;
new (): TextEncoderStream;
@ -375,7 +375,7 @@ declare var TextEncoderStream: {
/** A controller object that allows you to abort one or more DOM requests as and
* when desired.
*
* @category Web APIs
* @category Platform
*/
declare interface AbortController {
/** Returns the AbortSignal object associated with this object. */
@ -388,14 +388,14 @@ declare interface AbortController {
/** A controller object that allows you to abort one or more DOM requests as and
* when desired.
*
* @category Web APIs
* @category Platform
*/
declare var AbortController: {
readonly prototype: AbortController;
new (): AbortController;
};
/** @category Web APIs */
/** @category Platform */
declare interface AbortSignalEventMap {
abort: Event;
}
@ -403,7 +403,7 @@ declare interface AbortSignalEventMap {
/** A signal object that allows you to communicate with a DOM request (such as a
* Fetch) and abort it if required via an AbortController object.
*
* @category Web APIs
* @category Platform
*/
declare interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort,
@ -437,7 +437,7 @@ declare interface AbortSignal extends EventTarget {
throwIfAborted(): void;
}
/** @category Web APIs */
/** @category Platform */
declare var AbortSignal: {
readonly prototype: AbortSignal;
new (): never;
@ -446,7 +446,7 @@ declare var AbortSignal: {
timeout(milliseconds: number): AbortSignal;
};
/** @category Web File API */
/** @category File */
declare interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
@ -460,7 +460,7 @@ declare interface FileReaderEventMap {
* buffers) stored on the user's computer, using File or Blob objects to specify
* the file or data to read.
*
* @category Web File API
* @category File
*/
declare interface FileReader extends EventTarget {
readonly error: DOMException | null;
@ -504,7 +504,7 @@ declare interface FileReader extends EventTarget {
): void;
}
/** @category Web File API */
/** @category File */
declare var FileReader: {
readonly prototype: FileReader;
new (): FileReader;
@ -513,10 +513,10 @@ declare var FileReader: {
readonly LOADING: number;
};
/** @category Web File API */
/** @category File */
declare type BlobPart = BufferSource | Blob | string;
/** @category Web File API */
/** @category File */
declare interface BlobPropertyBag {
type?: string;
endings?: "transparent" | "native";
@ -527,7 +527,7 @@ declare interface BlobPropertyBag {
* Blob, inheriting blob functionality and expanding it to support files on the
* user's system.
*
* @category Web File API
* @category File
*/
declare interface Blob {
readonly size: number;
@ -543,14 +543,14 @@ declare interface Blob {
* Blob, inheriting blob functionality and expanding it to support files on the
* user's system.
*
* @category Web File API
* @category File
*/
declare var Blob: {
readonly prototype: Blob;
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
/** @category Web File API */
/** @category File */
declare interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
@ -558,7 +558,7 @@ declare interface FilePropertyBag extends BlobPropertyBag {
/** Provides information about files and allows JavaScript in a web page to
* access their content.
*
* @category Web File API
* @category File
*/
declare interface File extends Blob {
readonly lastModified: number;
@ -568,31 +568,31 @@ declare interface File extends Blob {
/** Provides information about files and allows JavaScript in a web page to
* access their content.
*
* @category Web File API
* @category File
*/
declare var File: {
readonly prototype: File;
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamDefaultReadDoneResult {
done: true;
value?: undefined;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamDefaultReadValueResult<T> {
done: false;
value: T;
}
/** @category Streams API */
/** @category Streams */
declare type ReadableStreamDefaultReadResult<T> =
| ReadableStreamDefaultReadValueResult<T>
| ReadableStreamDefaultReadDoneResult;
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamDefaultReader<R = any> {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
@ -600,35 +600,35 @@ declare interface ReadableStreamDefaultReader<R = any> {
releaseLock(): void;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableStreamDefaultReader: {
readonly prototype: ReadableStreamDefaultReader;
new <R>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamBYOBReadDoneResult<V extends ArrayBufferView> {
done: true;
value?: V;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamBYOBReadValueResult<V extends ArrayBufferView> {
done: false;
value: V;
}
/** @category Streams API */
/** @category Streams */
declare type ReadableStreamBYOBReadResult<V extends ArrayBufferView> =
| ReadableStreamBYOBReadDoneResult<V>
| ReadableStreamBYOBReadValueResult<V>;
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamBYOBReaderReadOptions {
min?: number;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamBYOBReader {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
@ -639,31 +639,31 @@ declare interface ReadableStreamBYOBReader {
releaseLock(): void;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableStreamBYOBReader: {
readonly prototype: ReadableStreamBYOBReader;
new (stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
};
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView | null;
respond(bytesWritten: number): void;
respondWithNewView(view: ArrayBufferView): void;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableStreamBYOBRequest: {
readonly prototype: ReadableStreamBYOBRequest;
new (): never;
};
/** @category Streams API */
/** @category Streams */
declare interface ReadableByteStreamControllerCallback {
(controller: ReadableByteStreamController): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: ReadableStreamErrorCallback;
@ -672,7 +672,7 @@ declare interface UnderlyingByteSource {
type: "bytes";
}
/** @category Streams API */
/** @category Streams */
declare interface UnderlyingSink<W = any> {
abort?: WritableStreamErrorCallback;
close?: WritableStreamDefaultControllerCloseCallback;
@ -681,7 +681,7 @@ declare interface UnderlyingSink<W = any> {
write?: WritableStreamDefaultControllerWriteCallback<W>;
}
/** @category Streams API */
/** @category Streams */
declare interface UnderlyingSource<R = any> {
cancel?: ReadableStreamErrorCallback;
pull?: ReadableStreamDefaultControllerCallback<R>;
@ -689,17 +689,17 @@ declare interface UnderlyingSource<R = any> {
type?: undefined;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamDefaultControllerCallback<R> {
(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
@ -707,13 +707,13 @@ declare interface ReadableStreamDefaultController<R = any> {
error(error?: any): void;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableStreamDefaultController: {
readonly prototype: ReadableStreamDefaultController;
new (): never;
};
/** @category Streams API */
/** @category Streams */
declare interface ReadableByteStreamController {
readonly byobRequest: ReadableStreamBYOBRequest | null;
readonly desiredSize: number | null;
@ -722,13 +722,13 @@ declare interface ReadableByteStreamController {
error(error?: any): void;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableByteStreamController: {
readonly prototype: ReadableByteStreamController;
new (): never;
};
/** @category Streams API */
/** @category Streams */
declare interface PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
@ -736,12 +736,12 @@ declare interface PipeOptions {
signal?: AbortSignal;
}
/** @category Streams API */
/** @category Streams */
declare interface QueuingStrategySizeCallback<T = any> {
(chunk: T): number;
}
/** @category Streams API */
/** @category Streams */
declare interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySizeCallback<T>;
@ -750,27 +750,27 @@ declare interface QueuingStrategy<T = any> {
/** This Streams API interface provides a built-in byte length queuing strategy
* that can be used when constructing streams.
*
* @category Streams API
* @category Streams
*/
declare interface CountQueuingStrategy extends QueuingStrategy {
highWaterMark: number;
size(chunk: any): 1;
}
/** @category Streams API */
/** @category Streams */
declare var CountQueuingStrategy: {
readonly prototype: CountQueuingStrategy;
new (options: { highWaterMark: number }): CountQueuingStrategy;
};
/** @category Streams API */
/** @category Streams */
declare interface ByteLengthQueuingStrategy
extends QueuingStrategy<ArrayBufferView> {
highWaterMark: number;
size(chunk: ArrayBufferView): number;
}
/** @category Streams API */
/** @category Streams */
declare var ByteLengthQueuingStrategy: {
readonly prototype: ByteLengthQueuingStrategy;
new (options: { highWaterMark: number }): ByteLengthQueuingStrategy;
@ -780,7 +780,7 @@ declare var ByteLengthQueuingStrategy: {
* Fetch API offers a concrete instance of a ReadableStream through the body
* property of a Response object.
*
* @category Streams API
* @category Streams
*/
declare interface ReadableStream<R = any> {
readonly locked: boolean;
@ -801,7 +801,7 @@ declare interface ReadableStream<R = any> {
}): AsyncIterableIterator<R>;
}
/** @category Streams API */
/** @category Streams */
declare var ReadableStream: {
readonly prototype: ReadableStream;
new (
@ -817,17 +817,17 @@ declare var ReadableStream: {
): ReadableStream<R>;
};
/** @category Streams API */
/** @category Streams */
declare interface WritableStreamDefaultControllerCloseCallback {
(): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface WritableStreamDefaultControllerStartCallback {
(controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface WritableStreamDefaultControllerWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController):
| void
@ -836,7 +836,7 @@ declare interface WritableStreamDefaultControllerWriteCallback<W> {
>;
}
/** @category Streams API */
/** @category Streams */
declare interface WritableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
@ -845,7 +845,7 @@ declare interface WritableStreamErrorCallback {
* streaming data to a destination, known as a sink. This object comes with
* built-in backpressure and queuing.
*
* @category Streams API
* @category Streams
*/
declare interface WritableStream<W = any> {
readonly locked: boolean;
@ -854,7 +854,7 @@ declare interface WritableStream<W = any> {
getWriter(): WritableStreamDefaultWriter<W>;
}
/** @category Streams API */
/** @category Streams */
declare var WritableStream: {
readonly prototype: WritableStream;
new <W = any>(
@ -868,14 +868,14 @@ declare var WritableStream: {
* sink is given a corresponding WritableStreamDefaultController instance to
* manipulate.
*
* @category Streams API
* @category Streams
*/
declare interface WritableStreamDefaultController {
signal: AbortSignal;
error(error?: any): void;
}
/** @category Streams API */
/** @category Streams */
declare var WritableStreamDefaultController: {
readonly prototype: WritableStreamDefaultController;
new (): never;
@ -886,7 +886,7 @@ declare var WritableStreamDefaultController: {
* WritableStream ensuring that no other streams can write to the underlying
* sink.
*
* @category Streams API
* @category Streams
*/
declare interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<void>;
@ -898,19 +898,19 @@ declare interface WritableStreamDefaultWriter<W = any> {
write(chunk: W): Promise<void>;
}
/** @category Streams API */
/** @category Streams */
declare var WritableStreamDefaultWriter: {
readonly prototype: WritableStreamDefaultWriter;
new <W>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/** @category Streams API */
/** @category Streams */
declare interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
/** @category Streams API */
/** @category Streams */
declare var TransformStream: {
readonly prototype: TransformStream;
new <I = any, O = any>(
@ -920,7 +920,7 @@ declare var TransformStream: {
): TransformStream<I, O>;
};
/** @category Streams API */
/** @category Streams */
declare interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk: O): void;
@ -928,13 +928,13 @@ declare interface TransformStreamDefaultController<O = any> {
terminate(): void;
}
/** @category Streams API */
/** @category Streams */
declare var TransformStreamDefaultController: {
readonly prototype: TransformStreamDefaultController;
new (): never;
};
/** @category Streams API */
/** @category Streams */
declare interface Transformer<I = any, O = any> {
flush?: TransformStreamDefaultControllerCallback<O>;
readableType?: undefined;
@ -944,12 +944,12 @@ declare interface Transformer<I = any, O = any> {
writableType?: undefined;
}
/** @category Streams API */
/** @category Streams */
declare interface TransformStreamDefaultControllerCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
/** @category Streams API */
/** @category Streams */
declare interface TransformStreamDefaultControllerTransformCallback<I, O> {
(
chunk: I,
@ -957,14 +957,14 @@ declare interface TransformStreamDefaultControllerTransformCallback<I, O> {
): void | PromiseLike<void>;
}
/** @category DOM APIs */
/** @category Events */
declare interface MessageEventInit<T = any> extends EventInit {
data?: T;
origin?: string;
lastEventId?: string;
}
/** @category DOM APIs */
/** @category Events */
declare interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
@ -985,13 +985,13 @@ declare interface MessageEvent<T = any> extends Event {
readonly ports: ReadonlyArray<MessagePort>;
}
/** @category DOM APIs */
/** @category Events */
declare var MessageEvent: {
readonly prototype: MessageEvent;
new <T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
/** @category DOM APIs */
/** @category Events */
declare type Transferable = ArrayBuffer | MessagePort;
/**
@ -999,11 +999,11 @@ declare type Transferable = ArrayBuffer | MessagePort;
* new code.
*
* @deprecated use `StructuredSerializeOptions` instead.
* @category DOM APIs
* @category Events
*/
declare type PostMessageOptions = StructuredSerializeOptions;
/** @category DOM APIs */
/** @category Platform */
declare interface StructuredSerializeOptions {
transfer?: Transferable[];
}
@ -1012,7 +1012,7 @@ declare interface StructuredSerializeOptions {
* create a new message channel and send data through it via its two MessagePort
* properties.
*
* @category DOM APIs
* @category Messaging
*/
declare interface MessageChannel {
readonly port1: MessagePort;
@ -1023,14 +1023,14 @@ declare interface MessageChannel {
* create a new message channel and send data through it via its two MessagePort
* properties.
*
* @category DOM APIs
* @category Messaging
*/
declare var MessageChannel: {
readonly prototype: MessageChannel;
new (): MessageChannel;
};
/** @category DOM APIs */
/** @category Messaging */
declare interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
@ -1040,7 +1040,7 @@ declare interface MessagePortEventMap {
* two ports of a MessageChannel, allowing messages to be sent from one port and
* listening out for them arriving at the other.
*
* @category DOM APIs
* @category Messaging
*/
declare interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
@ -1090,7 +1090,7 @@ declare interface MessagePort extends EventTarget {
* two ports of a MessageChannel, allowing messages to be sent from one port and
* listening out for them arriving at the other.
*
* @category DOM APIs
* @category Messaging
*/
declare var MessagePort: {
readonly prototype: MessagePort;
@ -1122,7 +1122,7 @@ declare var MessagePort: {
* console.log(shallowCopy.x, object.x); // 1 1
* ```
*
* @category DOM APIs
* @category Platform
*/
declare function structuredClone<T = any>(
value: T,
@ -1139,7 +1139,7 @@ declare function structuredClone<T = any>(
* .pipeTo(Deno.stdout.writable);
* ```
*
* @category Compression Streams API
* @category Streams
*/
declare interface CompressionStream {
readonly readable: ReadableStream<Uint8Array>;
@ -1156,7 +1156,7 @@ declare interface CompressionStream {
* .pipeTo(Deno.stdout.writable);
* ```
*
* @category Compression Streams API
* @category Streams
*/
declare var CompressionStream: {
readonly prototype: CompressionStream;
@ -1183,7 +1183,7 @@ declare var CompressionStream: {
* .pipeTo(output.writable);
* ```
*
* @category Compression Streams API
* @category Streams
*/
declare interface DecompressionStream {
readonly readable: ReadableStream<Uint8Array>;
@ -1203,7 +1203,7 @@ declare interface DecompressionStream {
* .pipeTo(output.writable);
* ```
*
* @category Compression Streams API
* @category Streams
*/
declare var DecompressionStream: {
readonly prototype: DecompressionStream;
@ -1232,21 +1232,21 @@ declare var DecompressionStream: {
* ```
* In Deno, this error will terminate the process if not intercepted like above.
*
* @category Web APIs
* @category Platform
*/
declare function reportError(
error: any,
): void;
/** @category Web APIs */
/** @category Platform */
declare type PredefinedColorSpace = "srgb" | "display-p3";
/** @category Web APIs */
/** @category Platform */
declare interface ImageDataSettings {
readonly colorSpace?: PredefinedColorSpace;
}
/** @category Web APIs */
/** @category Platform */
declare interface ImageData {
readonly colorSpace: PredefinedColorSpace;
readonly data: Uint8ClampedArray;
@ -1254,7 +1254,7 @@ declare interface ImageData {
readonly width: number;
}
/** @category Web APIs */
/** @category Platform */
declare var ImageData: {
prototype: ImageData;
new (sw: number, sh: number, settings?: ImageDataSettings): ImageData;

View file

@ -5,14 +5,14 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/** @category Web Sockets */
/** @category WebSockets */
declare interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
/** @category Web Sockets */
/** @category WebSockets */
declare interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
@ -28,13 +28,13 @@ declare interface CloseEvent extends Event {
readonly wasClean: boolean;
}
/** @category Web Sockets */
/** @category WebSockets */
declare var CloseEvent: {
readonly prototype: CloseEvent;
new (type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** @category Web Sockets */
/** @category WebSockets */
declare interface WebSocketEventMap {
close: CloseEvent;
error: Event;
@ -50,7 +50,7 @@ declare interface WebSocketEventMap {
* `Deno.upgradeWebSocket()`.
*
* @tags allow-net
* @category Web Sockets
* @category WebSockets
*/
declare interface WebSocket extends EventTarget {
/**
@ -119,7 +119,7 @@ declare interface WebSocket extends EventTarget {
): void;
}
/** @category Web Sockets */
/** @category WebSockets */
declare var WebSocket: {
readonly prototype: WebSocket;
new (url: string | URL, protocols?: string | string[]): WebSocket;
@ -129,5 +129,5 @@ declare var WebSocket: {
readonly OPEN: number;
};
/** @category Web Sockets */
/** @category WebSockets */
declare type BinaryType = "arraybuffer" | "blob";

View file

@ -9,7 +9,7 @@
* session or local storage. It allows, for example, the addition, modification,
* or deletion of stored data items.
*
* @category Web Storage API
* @category Storage
*/
declare interface Storage {
/**
@ -41,7 +41,7 @@ declare interface Storage {
[name: string]: any;
}
/** @category Web Storage API */
/** @category Storage */
declare var Storage: {
readonly prototype: Storage;
new (): never;

View file

@ -1401,7 +1401,7 @@ fn lsp_hover() {
"value": "const Deno.args: string[]"
},
"Returns the script arguments to the program.\n\nGive the following command line invocation of Deno:\n\n```sh\ndeno run --allow-read https://examples.deno.land/command-line-arguments.ts Sushi\n```\n\nThen `Deno.args` will contain:\n\n```ts\n[ \"Sushi\" ]\n```\n\nIf you are looking for a structured way to parse arguments, there is\n[`parseArgs()`](https://jsr.io/@std/cli/doc/parse-args/~/parseArgs) from\nthe Deno Standard Library.",
"\n\n*@category* - Runtime Environment",
"\n\n*@category* - Runtime",
],
"range": {
"start": { "line": 0, "character": 17 },
@ -6610,7 +6610,7 @@ fn lsp_completions() {
"detail": "const Deno.build: {\n target: string;\n arch: \"x86_64\" | \"aarch64\";\n os: \"darwin\" | \"linux\" | \"android\" | \"windows\" | \"freebsd\" | \"netbsd\" | \"aix\" | \"solaris\" | \"illumos\";\n vendor: string;\n env?: string | undefined;\n}",
"documentation": {
"kind": "markdown",
"value": "Information related to the build of the current Deno runtime.\n\nUsers are discouraged from code branching based on this information, as\nassumptions about what is available in what build environment might change\nover time. Developers should specifically sniff out the features they\nintend to use.\n\nThe intended use for the information is for logging and debugging purposes.\n\n*@category* - Runtime Environment"
"value": "Information related to the build of the current Deno runtime.\n\nUsers are discouraged from code branching based on this information, as\nassumptions about what is available in what build environment might change\nover time. Developers should specifically sniff out the features they\nintend to use.\n\nThe intended use for the information is for logging and debugging purposes.\n\n*@category* - Runtime"
},
"sortText": "1",
"insertTextFormat": 1