@shopify/oxygen-workers-types
TypeScript icon, indicating that this package has built-in type declarations

4.1.10 • Public • Published

Oxygen Workers Types

This package provides TypeScript definitions for the Oxygen runtime by Shopify.

It is a derivative of @cloudflare/workers-types.

Development

See the development page.

Usage

The following is a minimal tsconfig.json for use alongside this package:

tsconfig.json

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ES2022",
    "lib": ["ES2022"],
    "types": ["@shopify/oxygen-workers-types"]
  }
}

To view the Typedoc-generated documentation, navigate to the docs folder within the node_modules/@shopify/oxygen-workers-types directory after installation, and open the index.html file in your preferred web browser.

This package exposes different entrypoints for supported "compatibility date" on the Oxygen platform. Each entrypoint is available to import under its respective date, e.g. @shopify/oxygen-workers-types/2022-10-31. You can review available entrypoints in the aforementioned typedoc-generated documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @shopify/oxygen-workers-types

Weekly Downloads

29,312

Version

4.1.10

License

Apache-2.0

Unpacked Size

5.4 MB

Total Files

309

Last publish

Collaborators

  • shopify-admin
  • shopify-dep
  • mishsmelle
  • netlohan
  • pmoloney89
  • maryharte
  • jaykay101