mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[webpack-env] make __WebpackModuleApi.Module compatible with NodeJS.Module (#47516)
* fix: make __WebpackModuleApi.Module compatible with NodeJS.Module * test: import node types in test * test: use reference instead of import Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
This commit is contained in:
parent
8ea3802414
commit
3dc75e301a
2
types/webpack-env/index.d.ts
vendored
2
types/webpack-env/index.d.ts
vendored
@ -68,7 +68,7 @@ declare namespace __WebpackModuleApi {
|
||||
id: string;
|
||||
filename: string;
|
||||
loaded: boolean;
|
||||
parent: NodeModule | null;
|
||||
parent: NodeModule | null | undefined;
|
||||
children: NodeModule[];
|
||||
hot?: Hot;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
interface SomeModule {
|
||||
someMethod(): void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user