Skip to content

Commit

Permalink
Add TypeScript definition
Browse files Browse the repository at this point in the history
This makes it easier to use this plugin with a webpack.config.ts
like described at https://webpack.js.org/configuration/configuration-languages/#typescript
  • Loading branch information
dalen committed Jun 20, 2019
1 parent 2139384 commit 8c2a153
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.d.ts
@@ -0,0 +1,10 @@
declare module 'serverless-webpack' {
const lib: {
webpack: {
isLocal: boolean;
};
entries: {
[name: string]: string | string[];
};
};
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "5.3.1",
"description": "Serverless plugin to bundle your javascript with Webpack",
"main": "index.js",
"types": "index.d.ts",
"author": "Frank Schmid <fschmid740@googlemail.com>",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8c2a153

Please sign in to comment.