diff --git a/src/main.ts b/src/main.ts index 4638cd73..803d20e2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,11 @@ +import type { getNetlifyGlobal } from '@netlify/serverless-functions-api' + export { builder } from './lib/builder.js' export { schedule } from './lib/schedule.js' export { stream } from './lib/stream.js' export * from './function/index.js' + +// Ambient type declarations +declare global { + const Netlify: ReturnType +} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 622ed037..00000000 --- a/types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { getNetlifyGlobal } from '@netlify/serverless-functions-api' - -// Ambient type declarations -declare global { - const Netlify: ReturnType -}