We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a296cd3 commit 72f2310Copy full SHA for 72f2310
src/main.ts
@@ -1,12 +1,5 @@
1
-import type { getNetlifyGlobal } from '@netlify/serverless-functions-api'
2
-
3
export { builder } from './lib/builder.js'
4
export { purgeCache } from './lib/purge_cache.js'
5
export { schedule } from './lib/schedule.js'
6
export { stream } from './lib/stream.js'
7
export * from './function/index.js'
8
9
-// Ambient type declarations
10
-declare global {
11
- const Netlify: ReturnType<typeof getNetlifyGlobal>
12
-}
test/types/Netlify_Global.test-d.ts
@@ -0,0 +1,6 @@
+import { expectAssignable } from 'tsd'
+
+// eslint-disable-next-line import/no-unassigned-import
+import '../../src/main.js'
+expectAssignable<{ env: unknown }>(Netlify)
0 commit comments