mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Allow resolveWeak to return a string (#23270)
Handles cases where module ids are hashed.
This commit is contained in:
committed by
Sheetal Nandi
parent
4c1b2958ab
commit
1748b088ab
Vendored
+1
-1
@@ -42,7 +42,7 @@ declare namespace __WebpackModuleApi {
|
||||
/**
|
||||
* Like require.resolve, but doesn’t include the module into the bundle. It’s a weak dependency.
|
||||
*/
|
||||
resolveWeak(path: string): number;
|
||||
resolveWeak(path: string): number | string;
|
||||
/**
|
||||
* Ensures that the dependency is available, but don’t execute it. This can be use for optimizing the position of a module in the chunks.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user