Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/recurser/rollbar-serverless-support
https://github.com/recurser/rollbar-serverless-support
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/recurser/rollbar-serverless-support
- Owner: recurser
- Created: 2021-11-01T04:51:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-01T14:52:30.000Z (almost 3 years ago)
- Last Synced: 2023-03-11T09:12:08.608Z (over 1 year ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to use
1. `cp .env.example .env`
2. `yarn install`
3. `yarn dev`You should see the following output:
```
yarn run v1.22.11
$ serverless offline
Serverless: Compiling with Typescript...
src/handlers/rollbarTest.ts (6,46): Argument of type '(event: any, context: Context, callback: Callback) => void' is not assignable to parameter of type 'LambdaHandler'.
Types of parameters 'callback' and 'callback' are incompatible.
Types of parameters 'err' and 'error' are incompatible.
Type 'string | Error | null | undefined' is not assignable to type 'MaybeError'.
Type 'string' is not assignable to type 'MaybeError'.
Serverless: Typescript compiled.
Serverless: Watching typescript files...
offline: Starting Offline: dev/ap-northeast-1.
offline: Offline [http for lambda] listening on http://localhost:3002
offline: Function names exposed for local invocation by aws-sdk:
* rollbarTest: rollbar-test-dev-rollbarTest
```If I change `callback: Callback` to `callback: any` in rollbarTest.ts, it compiles as expected.