Skip to content

Commit

Permalink
fix: fixes the ambient declarations on import (#429)
Browse files Browse the repository at this point in the history
🎉 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.
  • Loading branch information
lukasholzer authored Oct 6, 2023
1 parent e241771 commit 271a255
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -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<typeof getNetlifyGlobal>
}
6 changes: 0 additions & 6 deletions types/index.d.ts

This file was deleted.

0 comments on commit 271a255

Please sign in to comment.