Skip to content

Commit 271a255

Browse files
authoredOct 6, 2023
fix: fixes the ambient declarations on import (#429)
🎉 Thanks for sending this pull request! 🎉 Please make sure the title is clear and descriptive. If you are fixing a typo or documentation, please skip these instructions. Otherwise please fill in the sections below. **Which problem is this pull request solving?** Example: I'm always frustrated when [...] **List other issues or pull requests related to this problem** Example: This fixes #5012 **Describe the solution you've chosen** Example: I've fixed this by [...] **Describe alternatives you've considered** Example: Another solution would be [...] **Checklist** Please add a `x` inside each checkbox: - [ ] I have read the [contribution guidelines](../blob/master/CONTRIBUTING.md). - [ ] The status checks are successful (continuous integration). Those can be seen below.
1 parent e241771 commit 271a255

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
 

‎src/main.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
import type { getNetlifyGlobal } from '@netlify/serverless-functions-api'
2+
13
export { builder } from './lib/builder.js'
24
export { schedule } from './lib/schedule.js'
35
export { stream } from './lib/stream.js'
46
export * from './function/index.js'
7+
8+
// Ambient type declarations
9+
declare global {
10+
const Netlify: ReturnType<typeof getNetlifyGlobal>
11+
}

‎types/index.d.ts

-6
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.