mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
add type definition for package: apex.js (#13796)
* add apex.js * 4 spaces * fix `implicitly has any type` * match the style of tslint.json * make `event` and `context` not optional * avoid annotating the types of callbacks manually
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import λ from "apex.js";
|
||||
|
||||
const handler = λ(event => {
|
||||
console.log("Invoked with event " + JSON.stringify(event));
|
||||
});
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for apex.js 2.0
|
||||
// Project: https://github.com/apex/node-apex
|
||||
// Definitions by: Yoriki Yamaguchi <https://github.com/y13i>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="aws-lambda" />
|
||||
|
||||
export default function λ(fn: (event: any, context: AWSLambda.Context) => any): (event: any, context: AWSLambda.Context, callback: AWSLambda.Callback) => void;
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"apex.js-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user