A controller object that allows you to abort one or more DOM requests as andwhen desired.
A signal object that allows you to communicate with a DOM request (such as aFetch) and abort it if required via an AbortController object.
Registers an event listener in the global scope, which will be calledsynchronously whenever the event type
is dispatched.
Shows the given message and waits for the enter key pressed.
Decodes a string of data which has been encoded using base-64 encoding.
A file-like object of immutable, raw data. Blobs represent data that isn'tnecessarily in a JavaScript-native format. The File interface is based onBlob, inheriting blob functionality and expanding it to support files on theuser's system.
Creates a base-64 ASCII encoded string from the input string.
Cancels a timed, repeating action which was previously started by a callto setInterval()
Cancels a scheduled action initiated by setTimeout()
Specifies whether the image should be decoded using color space conversion.Either none or default (default). The value default indicates thatimplementation-specific behavior is used.
An API for compressing a stream of data.
Shows the given message and waits for the answer. Returns the user's answer as boolean.
This Streams API interface provides a built-in byte length queuing strategythat can be used when constructing streams.
Create a new ImageBitmap
object from a given source.
The CryptoKey dictionary of the Web Crypto API represents a cryptographickey.
The CryptoKeyPair dictionary of the Web Crypto API represents a key pair foran asymmetric cryptography algorithm, also known as a public-key algorithm.
An API for decompressing a stream of data.
Dispatches an event in the global scope, synchronously invoking anyregistered event listeners for this event in the appropriate order. Returnsfalse if event is cancelable and at least one of the event handlers whichhandled this event called Event.preventDefault(). Otherwise it returns true.
An event which takes place in the DOM.
EventTarget is a DOM interface implemented by objects that can receive eventsand may have listeners for them.
Fetch a resource from the network. It returns a Promise
that resolves to theResponse
to that Request
, whether it is successful or not.
Provides information about files and allows JavaScript in a web page toaccess their content.
Lets web applications asynchronously read the contents of files (or raw databuffers) stored on the user's computer, using File or Blob objects to specifythe file or data to read.
A typed array of 16-bit float values. The contents are initialized to 0. If the requested numberof bytes could not be allocated an exception is raised.
Provides a way to easily construct a set of key/value pairs representingform fields and their values, which can then be easily sent using theXMLHttpRequest.send() method. It uses the same format a form would use if theencoding type were set to "multipart/form-data".
This Fetch API interface allows you to perform various actions on HTTPrequest and response headers. These actions include retrieving, setting,adding to, and removing. A Headers object has an associated header list,which is initially empty and consists of zero or more name and value pairs.You can add to this using methods like append() (see Examples). In allmethods of this interface, header names are matched by case-insensitive bytesequence.
ImageBitmap
interface represents a bitmap image which can be drawn to a canvas.
The options of createImageBitmap
.
The ImageBitmapSource
type represents an image data source that can beused to create an ImageBitmap
.
Specifies how the bitmap image should be oriented.
Deno provides extra properties on import.meta
. These are included hereto ensure that these are still available when using the Deno namespace inconjunction with other type libs, like dom
.
The location (URL) of the object it is linked to. Changes done on it arereflected on the object it relates to. Accessible viaglobalThis.location
.
The MessageChannel interface of the Channel Messaging API allows us tocreate a new message channel and send data through it via its two MessagePortproperties.
The MessagePort interface of the Channel Messaging API represents one of thetwo ports of a MessageChannel, allowing messages to be sent from one port andlistening out for them arriving at the other.
Deno supports User Timing Level 3which is not widely supported yet in other runtimes.
Encapsulates a single performance metric that is part of the performancetimeline. A performance entry can be directly created by making a performancemark or measure (for example by calling the .mark()
method) at an explicitpoint in an application.
PerformanceMark
is an abstract interface for PerformanceEntry
objectswith an entryType of "mark"
. Entries of this type are created by callingperformance.mark()
to add a named DOMHighResTimeStamp
(the mark) to theperformance timeline.
Options which are used in conjunction with performance.mark
. Check out theMDNperformance.mark()
documentation for more details.
PerformanceMeasure
is an abstract interface for PerformanceEntry
objectswith an entryType of "measure"
. Entries of this type are created by callingperformance.measure()
to add a named DOMHighResTimeStamp
(the measure)between two marks to the performance timeline.
Options which are used in conjunction with performance.measure
. Check out theMDNperformance.mark()
documentation for more details.
Specifies whether the bitmap's color channels should be premultiplied bythe alpha channel.
Events measuring progress of an underlying process, like an HTTP request(for an XMLHttpRequest, or the loading of the underlying resource of an, ,
Shows the given message and waits for the user's input. Returns the user's input as string.
A microtask is a short function which is executed after the function ormodule which created it exits and only if the JavaScript execution stack isempty, but before returning control to the event loop being used to drive thescript's execution environment. This event loop may be either the main eventloop or the event loop driving a web worker.
This Streams API interface represents a readable stream of byte data. TheFetch API offers a concrete instance of a ReadableStream through the bodyproperty of a Response object.
Remove a previously registered event listener from the global scope
Dispatch an uncaught exception. Similar to a synchronous version of:
This Fetch API interface represents a resource request.
Specifies the algorithm to be used for resizing the input to match theoutput dimensions. One of pixelated
, low
(default), medium
, or high
.
This Fetch API interface represents the response to a request.
Repeatedly calls a function , with a fixed time delay between each call.
Sets a timer which executes a function once after the delay (in milliseconds) elapses. Returnsan id which may be used to cancel the timeout.
This Web Storage API interface provides access to a particular domain'ssession or local storage. It allows, for example, the addition, modification,or deletion of stored data items.
Creates a deep copy of a given value using the structured clone algorithm.
This Web Crypto API interface provides a number of low-level cryptographicfunctions. It is accessed via the Crypto.subtle properties available in awindow context (via globalThis.crypto).
Options for arithmetic operations like add()
and subtract()
Options for assigning fields using with()
or entire objects withfrom()
.
A Temporal.Calendar
is a representation of a calendar system. It includesinformation about how many days are in each year, how many months are ineach year, how many days are in each month, and how to do arithmetic inthat calendar system.
Any of these types can be passed to Temporal methods instead of a Temporal.Calendar.
Options to control the result of until()
and since()
methods inTemporal
types.
A Temporal.Duration
represents an immutable duration of time which can beused in date/time arithmetic.
Options to control behavior of Duration.compare()
, Duration.add()
, andDuration.subtract()
Options for assigning fields using Duration.prototype.with()
or entireobjects with Duration.from()
, and for arithmetic withDuration.prototype.add()
and Duration.prototype.subtract()
.
The round
method of the Temporal.Duration
accepts one requiredparameter. If a string is provided, the resulting Temporal.Duration
object will be rounded to that unit. If an object is provided, thesmallestUnit
and/or largestUnit
property is required, while otherproperties are optional. A string parameter is treated the same as anobject whose smallestUnit
property value is that string.
Options to control behavior of Duration.prototype.total()
A Temporal.Instant
is an exact point in time, with a precision innanoseconds. No time zone or calendar information is present. Therefore,Temporal.Instant
has no concept of days, months, or even hours.
The Temporal.Now
object has several methods which give information aboutthe current date, time, and time zone.
A Temporal.PlainDate
represents a calendar date. "Calendar date" refers to theconcept of a date as expressed in everyday usage, independent of any timezone. For example, it could be used to represent an event on a calendarwhich happens during the whole day no matter which time zone it's happeningin.
A Temporal.PlainDateTime
represents a calendar date and wall-clock time, witha precision in nanoseconds, and without any time zone. Of the Temporalclasses carrying human-readable time information, it is the most generaland complete one. Temporal.PlainDate
, Temporal.PlainTime
, Temporal.PlainYearMonth
,and Temporal.PlainMonthDay
all carry less information and should be used whencomplete information is not required.
A Temporal.PlainMonthDay
represents a particular day on the calendar, butwithout a year. For example, it could be used to represent a yearlyrecurring event, like "Bastille Day is on the 14th of July."
A Temporal.PlainTime
represents a wall-clock time, with a precision innanoseconds, and without any time zone. "Wall-clock time" refers to theconcept of a time as expressed in everyday usage — the time that you readoff the clock on the wall. For example, it could be used to represent anevent that happens daily at a certain time, no matter what time zone.
A Temporal.PlainYearMonth
represents a particular month on the calendar. Forexample, it could be used to represent a particular instance of a monthlyrecurring event, like "the June 2019 meeting".
When the name of a unit is provided to a Temporal API as a string, it isusually singular, e.g. 'day' or 'hour'. But plural unit names like 'days'or 'hours' are also accepted.
round
methods take one required parameter. If a string is provided, theresulting Temporal.Duration
object will be rounded to that unit. If anobject is provided, its smallestUnit
property is required while otherproperties are optional. A string is treated the same as an object whosesmallestUnit
property value is that string.
A Temporal.TimeZone
is a representation of a time zone: either anIANA time zone, includinginformation about the time zone such as the offset between the local timeand UTC at a particular time, and daylight saving time (DST) changes; orsimply a particular UTC offset with no DST.
Any of these types can be passed to Temporal methods instead of a Temporal.TimeZone.
A plain object implementing the protocol for a custom time zone.
Options for conversions of Temporal.PlainDateTime
to Temporal.Instant
Options for outputting precision in toString() on types with seconds
Options to control behaviour of ZonedDateTime.prototype.getTimeZoneTransition()
Represents a decoder for a specific text encoding, allowing you to convertbinary data into a string given the encoding.
The URL interface represents an object providing static methods used forcreating object URLs.
The URLPattern API provides a web platform primitive for matching URLs basedon a convenient pattern syntax.
Options for the URLPattern
constructor.
URLPatternResult
is the object returned from URLPattern.exec
.
The WebAssembly.compile()
function compiles WebAssembly binary code into aWebAssembly.Module
object. This function is useful if it is necessary to compilea module before it can be instantiated (otherwise, the WebAssembly.instantiate()
function should be used).
The WebAssembly.CompileError
object indicates an error during WebAssembly decoding or validation.
The WebAssembly.compileStreaming()
function compiles a WebAssembly.Module
directly from a streamed underlying source. This function is useful if it isnecessary to a compile a module before it can be instantiated (otherwise, theWebAssembly.instantiateStreaming()
function should be used).
A WebAssembly.Global
object represents a global variable instance, accessible fromboth JavaScript and importable/exportable across one or more WebAssembly.Module
instances. This allows dynamic linking of multiple modules.
The GlobalDescriptor
describes the options you can pass tonew WebAssembly.Global()
.
A WebAssembly.Instance
object is a stateful, executable instance of a WebAssembly.Module
.Instance objects contain all the Exported WebAssembly functions that allow calling intoWebAssembly code from JavaScript.
The WebAssembly.instantiate() function allows you to compile and instantiateWebAssembly code.
The WebAssembly.instantiateStreaming()
function compiles and instantiates aWebAssembly module directly from a streamed underlying source. This is the mostefficient, optimized way to load wasm code.
The WebAssembly.LinkError
object indicates an error during module instantiation(besides traps from the start function).
The WebAssembly.Memory
object is a resizable ArrayBuffer
or SharedArrayBuffer
thatholds the raw bytes of memory accessed by a WebAssembly Instance.
The MemoryDescriptor
describes the options you can pass tonew WebAssembly.Memory()
.
A WebAssembly.Module
object contains stateless WebAssembly code that has already been compiledby the browser — this can be efficiently shared with Workers, and instantiated multiple times.
A ModuleExportDescriptor
is the description of a declared export in aWebAssembly.Module
.
A ModuleImportDescriptor
is the description of a declared import in aWebAssembly.Module
.
The WebAssembly.RuntimeError
object is the error type that is thrown whenever WebAssemblyspecifies a trap.
The WebAssembly.Table()
object is a JavaScript wrapper object — an array-like structurerepresenting a WebAssembly Table, which stores function references. A table created byJavaScript or in WebAssembly code will be accessible and mutable from both JavaScriptand WebAssembly.
The TableDescriptor
describes the options you can pass tonew WebAssembly.Table()
.
The WebAssembly.validate()
function validates a given typed array ofWebAssembly binary code, returning whether the bytes form a valid wasmmodule (true
) or not (false
).
The value returned from WebAssembly.instantiate
.
Provides the API for creating and managing a WebSocket connection to aserver, as well as for sending and receiving data on the connection.
This Streams API interface provides a standard abstraction for writingstreaming data to a destination, known as a sink. This object comes withbuilt-in backpressure and queuing.
This Streams API interface represents a controller allowing control of aWritableStream's state. When constructing a WritableStream, the underlyingsink is given a corresponding WritableStreamDefaultController instance tomanipulate.
This Streams API interface is the object returned byWritableStream.getWriter() and once created locks the < writer to theWritableStream ensuring that no other streams can write to the underlyingsink.