-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to using loader-utils 1.x (#475)
* move to using loader-utils 1.0.0 * Update package.json * Cater for getOptions can return null * cater for getLoaderOptions returning null * try that again
- Loading branch information
1 parent
cc95c0b
commit f306dc3
Showing
4 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
declare module 'loader-utils' { | ||
export function parseQuery<T>(query: string): T; | ||
export function getOptions<T>(loaderContext: { query: string; }): T; | ||
export function getRemainingRequest(loaderContext: any): any; | ||
export function getCurrentRequest(loaderContext: any): any; | ||
} |