Skip to content

Commit

Permalink
feat: export v2 api
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Jul 10, 2023
1 parent 3e1d890 commit d0a2129
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"test": "test"
},
"dependencies": {
"@netlify/serverless-functions-api": "^1.5.1",
"is-promise": "^4.0.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/function/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { Context as HandlerContext } from './context.js'
export { Event as HandlerEvent } from './event.js'
export { BuilderHandler, Handler, BackgroundHandler, HandlerCallback, StreamingHandler } from './handler.js'
export { BuilderResponse, Response as HandlerResponse, StreamingResponse } from './response.js'
export * from './v2.js'
1 change: 1 addition & 0 deletions src/function/v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type { Context } from '@netlify/serverless-functions-api'

0 comments on commit d0a2129

Please sign in to comment.