Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Adding definition for require.context. #51

Merged
merged 2 commits into from
Sep 9, 2015
Merged

Adding definition for require.context. #51

merged 2 commits into from
Sep 9, 2015

Conversation

defaude
Copy link
Contributor

@defaude defaude commented Sep 9, 2015

No description provided.

@@ -10,6 +10,11 @@ interface WebpackRequire {
(id: string): any;
(paths: string[], callback: (...modules: any[]) => void): void;
ensure(ids: string[], callback: WebpackRequireEnsureCallback, chunkName?: string): void;
context(directory: string, useSubDirectories: boolean, regExp: RegExp): WebpackContext;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! Could you please make useSubDirectories and regExp optional? http://webpack.github.io/docs/context.html

@defaude
Copy link
Contributor Author

defaude commented Sep 9, 2015

Your wish is my command, Sir ;)

@s-panferov
Copy link
Owner

@defaude thanks!

s-panferov added a commit that referenced this pull request Sep 9, 2015
Adding definition for require.context.
@s-panferov s-panferov merged commit 2b5176e into s-panferov:master Sep 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants