Skip to main content

Functions #

f
alert

Shows the given message and waits for the enter key pressed.

    f
    close

    Exits the current Deno process.

      f
      confirm

      Shows the given message and waits for the answer. Returns the user's answer as boolean.

        f
        prompt

        Shows the given message and waits for the user's input. Returns the user's input as string.

          f
          queueMicrotask

          A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment. This event loop may be either the main event loop or the event loop driving a web worker.

            f
            reportError

            Dispatch an uncaught exception. Similar to a synchronous version of:

              f
              structuredClone

              Creates a deep copy of a given value using the structured clone algorithm.

                Interfaces #

                I
                v
                AbortController

                A controller object that allows you to abort one or more DOM requests as and when desired.

                I
                v
                AbortSignal

                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.

                I
                AbortSignalEventMap
                No documentation available
                I
                DomIterable
                No documentation available
                I
                DOMStringList
                No documentation available
                I
                ImageDataSettings
                No documentation available
                I
                ImportMeta

                Deno provides extra properties on import.meta. These are included here to ensure that these are still available when using the Deno namespace in conjunction with other type libs, like dom.

                I
                v
                Location

                The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Accessible via globalThis.location.

                I
                Math
                No documentation available
                I
                v
                Navigator

                Provides information about the Deno runtime environment and the system on which it's running. Similar to the browser Navigator object but adapted for the Deno context.

                I
                v
                QuotaExceededError

                Represents an error when a quota has been exceeded.

                I
                QuotaExceededErrorOptions
                No documentation available
                I
                RegExpConstructor
                No documentation available
                I
                StructuredSerializeOptions

                Options that control structured serialization operations such as structuredClone(value, options) and MessagePort.postMessage(message, options).

                I
                Uint8ArrayConstructor
                No documentation available
                I
                VoidFunction
                No documentation available
                  I
                  WebTransportCloseInfo
                  No documentation available
                  I
                  WebTransportHash
                  No documentation available
                  I
                  WindowEventMap

                  Defines the mapping between event names and their corresponding event types for the Window interface in Deno.

                  Type Aliases #

                  T
                  AllowSharedBufferSource
                  No documentation available
                    T
                    BufferSource
                    No documentation available
                      T
                      ImageDataArray
                      No documentation available
                        T
                        ImageDataPixelFormat
                        No documentation available
                          T
                          PredefinedColorSpace
                          No documentation available
                            T
                            WebTransportCongestionControl
                            No documentation available
                              T
                              WebTransportErrorSource
                              No documentation available

                                Variables #

                                v
                                closed

                                Indicates whether the current window (context) is closed. In Deno, this property is primarily for API compatibility with browsers.

                                  v
                                  location

                                  The Location object describing the absolute URL of the main module, available when the program is started with the --location flag. Accessing it without --location throws.

                                    v
                                    name

                                    Gets or sets the name of the global scope's browsing context.

                                      v
                                      navigator

                                      Provides access to the Deno runtime's Navigator interface, which contains information about the environment in which the script is running.

                                        v
                                        self

                                        Reference to the global object itself. Equivalent to the global window object in browser environments.

                                          Did you find what you needed?

                                          Privacy policy