0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Export Cloudflare runtime types (#5230)

* Export Cloudflare runtime types

* Adding a changeset
This commit is contained in:
Matthew Phillips 2022-10-28 10:20:20 -04:00 committed by GitHub
parent a609a8937f
commit 69a532ab60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---
Exports new runtime entrypoint's types

View file

@ -19,7 +19,10 @@
"homepage": "https://docs.astro.build/en/guides/integrations-guide/cloudflare/",
"exports": {
".": "./dist/index.js",
"./runtime": "./dist/runtime.js",
"./runtime": {
"types": "./runtime.d.ts",
"default": "./dist/runtime.js"
},
"./server.advanced.js": "./dist/server.advanced.js",
"./server.directory.js": "./dist/server.directory.js",
"./package.json": "./package.json"

View file

@ -0,0 +1,8 @@
export type {
WorkerRuntime,
PagesRuntime
} from './dist/runtime';
export {
getRuntime
} from './dist/runtime';