Comparing version 0.16.2 to 0.16.3
{ | ||
"name": "middy", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -47,2 +47,3 @@ <div align="center"> | ||
- [API](#api) | ||
- [Typescript](#typescript) | ||
- [Contributing](#contributing) | ||
@@ -627,4 +628,20 @@ - [License](#license) | ||
## Typescript | ||
Middy exports Typescript compatible type information. To enable the use of Middy in your Typescript project please make sure `tsconfig.json` is configured as follows: | ||
``` | ||
{ | ||
"compilerOptions": { | ||
... | ||
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | ||
"esModuleInterop": true, | ||
... | ||
}, | ||
} | ||
``` | ||
After that you can `import middy from 'middy';` in your http handler and use it as described above. | ||
## Contributing | ||
@@ -631,0 +648,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143605
657