Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Add definition file for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias committed Aug 5, 2019
1 parent c6a9eff commit 6685cc5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"url": "https://github.com/storybooks/require-context.macro/issues"
},
"homepage": "https://github.com/storybooks/require-context.macro#readme",
"dependencies": {
"@types/webpack-env": "^1.14.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
Expand All @@ -34,5 +37,6 @@
},
"peerDependencies": {
"babel-plugin-macros": "^2.4.2"
}
},
"typings": "require-context.macro.d.ts"
}
8 changes: 8 additions & 0 deletions require-context.macro.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'require-context.macro' {
const value: (
path: string,
deep: boolean,
filter: RegExp,
) => __WebpackModuleApi.RequireContext;
export default value;
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,11 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==

"@types/webpack-env@^1.14.0":
version "1.14.0"
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.14.0.tgz#8edfc5f8e6eae20eeed3ca0d02974ed4ee5e4efc"
integrity sha512-Fv+0gYJzE/czLoRKq+gnXWr4yBpPM3tO3C8pDLFwqVKlMICQUq5OsxwwFZYDaVr7+L6mgNDp16iOcJHEz3J5RQ==

"@types/yargs@^12.0.2", "@types/yargs@^12.0.9":
version "12.0.12"
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.12.tgz#45dd1d0638e8c8f153e87d296907659296873916"
Expand Down

0 comments on commit 6685cc5

Please sign in to comment.