Runtime Edge logoRuntime Edge
GitHubGitHub (opens in a new tab)
  • Introduction
  • Getting Started
  • Command-line Interface
    • Runtime Edge APIs
    • Polyfills
    • TypeScript support
    • Upgrading Nextjs
    • @runtime-edge/cookies
    • @runtime-edge/format
    • @runtime-edge/jest-environment
    • @runtime-edge/jest-expect
    • @runtime-edge/node-utils
    • @runtime-edge/ponyfill
    • @runtime-edge/primitives
    • runtime-edge
    • @runtime-edge/types
    • @runtime-edge/user-agent
    • @runtime-edge/vm
  • Changelog (opens in a new tab)
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub
Features
TypeScript support

TypeScript support

The Runtime Edge includes TypeScript types. In fact, the library is written in TypeScript!

Just in case you need to have these types loaded as part of the global context, you can add them inside tsconfig.json (opens in a new tab):

{
  "compilerOptions": {
    "types": ["@runtime-edge/types"]
  }
}

Alternatively, you can load them using triple-slash directive (opens in a new tab) as well:

/// <reference types="@runtime-edge/types" />
PolyfillsUpgrading Nextjs