cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
generated-70ac2e4e1c

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/_shims/index.js

13lines · modecode

1/**
2 * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3 */
4const shims = require('./registry');
5const auto = require('cloudflare/_shims/auto/runtime');
6if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
7for (const property of Object.keys(shims)) {
8 Object.defineProperty(exports, property, {
9 get() {
10 return shims[property];
11 },
12 });
13}
14