cloudflare/cloudflare-typescript
Publicmirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable
src/_shims/index.mjs
11lines · modecode
| 1 | /** |
| 2 | * Disclaimer: modules in _shims aren't intended to be imported by SDK users. |
| 3 | */ |
| 4 | import * as shims from './registry.mjs'; |
| 5 | import * as auto from 'cloudflare/_shims/auto/runtime'; |
| 6 | export const init = () => { |
| 7 | if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); |
| 8 | }; |
| 9 | export * from './registry.mjs'; |
| 10 | |
| 11 | init(); |
| 12 | |