@types/webpack-env
Advanced tools
Comparing version 1.18.1 to 1.18.4
@@ -1,8 +0,1 @@ | ||
// Type definitions for webpack (module API) 1.18 | ||
// Project: https://github.com/webpack/webpack | ||
// Definitions by: use-strict <https://github.com/use-strict> | ||
// rhonsby <https://github.com/rhonsby> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
/** | ||
@@ -13,3 +6,3 @@ * Webpack module API - variables and global functions available inside modules | ||
declare namespace __WebpackModuleApi { | ||
type ModuleId = string|number; | ||
type ModuleId = string | number; | ||
@@ -45,4 +38,14 @@ interface RequireResolve { | ||
ensure(paths: string[], callback: (require: NodeRequire) => void, chunkName?: string): void; | ||
ensure(paths: string[], callback: (require: NodeRequire) => void, errorCallback?: (error: any) => void, chunkName?: string): void; | ||
context(path: string, deep?: boolean, filter?: RegExp, mode?: "sync" | "eager" | "weak" | "lazy" | "lazy-once"): RequireContext; | ||
ensure( | ||
paths: string[], | ||
callback: (require: NodeRequire) => void, | ||
errorCallback?: (error: any) => void, | ||
chunkName?: string, | ||
): void; | ||
context( | ||
path: string, | ||
deep?: boolean, | ||
filter?: RegExp, | ||
mode?: "sync" | "eager" | "weak" | "lazy" | "lazy-once", | ||
): RequireContext; | ||
/** | ||
@@ -67,3 +70,3 @@ * Returns the module id of a dependency. The call is sync. No request to the server is fired. The compiler ensures that the dependency is available. | ||
[id: string]: NodeModule | undefined; | ||
} | ||
}; | ||
} | ||
@@ -83,10 +86,10 @@ | ||
type: | ||
| 'self-declined' | ||
| 'declined' | ||
| 'unaccepted' | ||
| 'accepted' | ||
| 'disposed' | ||
| 'accept-errored' | ||
| 'self-accept-errored' | ||
| 'self-accept-error-handler-errored'; | ||
| "self-declined" | ||
| "declined" | ||
| "unaccepted" | ||
| "accepted" | ||
| "disposed" | ||
| "accept-errored" | ||
| "self-accept-errored" | ||
| "self-accept-error-handler-errored"; | ||
/** | ||
@@ -116,3 +119,3 @@ * The module in question. | ||
outdatedDependencies?: { | ||
[dependencyId: number]: number[]; | ||
[dependencyId: number]: number[]; | ||
} | undefined; | ||
@@ -128,3 +131,3 @@ /** | ||
originalError?: Error | undefined; | ||
} | ||
} | ||
@@ -138,3 +141,7 @@ interface Hot { | ||
*/ | ||
accept(dependencies: string[], callback?: (updatedDependencies: ModuleId[]) => void, errorHandler?: (err: Error) => void): void; | ||
accept( | ||
dependencies: string[], | ||
callback?: (updatedDependencies: ModuleId[]) => void, | ||
errorHandler?: (err: Error) => void, | ||
): void; | ||
/** | ||
@@ -200,3 +207,3 @@ * Accept code updates for the specified dependencies. The callback is called when dependencies were replaced. | ||
*/ | ||
check(autoApply?: boolean): Promise<null|ModuleId[]>; | ||
check(autoApply?: boolean): Promise<null | ModuleId[]>; | ||
/** | ||
@@ -265,4 +272,4 @@ * If status() != "ready" it throws an error. | ||
/** | ||
* Inside env you can pass any variable | ||
*/ | ||
* Inside env you can pass any variable | ||
*/ | ||
interface NodeProcess { | ||
@@ -325,3 +332,3 @@ env?: any; | ||
*/ | ||
declare var __webpack_init_sharing__: (scope: string) => Promise<void>; | ||
declare var __webpack_init_sharing__: (scope: string) => Promise<void>; | ||
@@ -360,13 +367,13 @@ /** | ||
options?: { | ||
recursive?: boolean; | ||
regExp?: RegExp; | ||
include?: RegExp; | ||
exclude?: RegExp; | ||
preload?: boolean | number; | ||
prefetch?: boolean | number; | ||
chunkName?: string; | ||
exports?: string | string[][]; | ||
mode?: 'sync' | 'eager' | 'weak' | 'lazy' | 'lazy-once'; | ||
} | ||
) => __WebpackModuleApi.RequireContext; | ||
recursive?: boolean; | ||
regExp?: RegExp; | ||
include?: RegExp; | ||
exclude?: RegExp; | ||
preload?: boolean | number; | ||
prefetch?: boolean | number; | ||
chunkName?: string; | ||
exports?: string | string[][]; | ||
mode?: "sync" | "eager" | "weak" | "lazy" | "lazy-once"; | ||
}, | ||
) => __WebpackModuleApi.RequireContext; | ||
} | ||
@@ -379,4 +386,4 @@ | ||
/** | ||
* Declare process variable | ||
*/ | ||
* Declare process variable | ||
*/ | ||
declare namespace NodeJS { | ||
@@ -383,0 +390,0 @@ interface Process extends __WebpackModuleApi.NodeProcess {} |
{ | ||
"name": "@types/webpack-env", | ||
"version": "1.18.1", | ||
"description": "TypeScript definitions for webpack (module API)", | ||
"version": "1.18.4", | ||
"description": "TypeScript definitions for webpack-env", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-env", | ||
@@ -10,9 +10,9 @@ "license": "MIT", | ||
"name": "use-strict", | ||
"url": "https://github.com/use-strict", | ||
"githubUsername": "use-strict" | ||
"githubUsername": "use-strict", | ||
"url": "https://github.com/use-strict" | ||
}, | ||
{ | ||
"name": "rhonsby", | ||
"url": "https://github.com/rhonsby", | ||
"githubUsername": "rhonsby" | ||
"githubUsername": "rhonsby", | ||
"url": "https://github.com/rhonsby" | ||
} | ||
@@ -29,4 +29,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7ecb35e8832eb07acd8ef223a8c43b2e141f28bf1f5fa2cd7c73a6d3460e5df6", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "aa7371e8d90ed060fac7e56885ffdfe9158faa88e6ef7b191fec6936501c64c4", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for webpack (module API) (https://github.com/webpack/webpack). | ||
This package contains type definitions for webpack-env (https://github.com/webpack/webpack). | ||
@@ -12,7 +12,6 @@ # Details | ||
### Additional Details | ||
* Last updated: Wed, 24 May 2023 14:32:47 GMT | ||
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT | ||
* Dependencies: none | ||
* Global values: `DEBUG`, `__non_webpack_require__`, `__resourceQuery`, `__webpack_chunk_load__`, `__webpack_hash__`, `__webpack_init_sharing__`, `__webpack_modules__`, `__webpack_nonce__`, `__webpack_public_path__`, `__webpack_require__`, `module`, `process`, `require` | ||
# Credits | ||
These definitions were written by [use-strict](https://github.com/use-strict), and [rhonsby](https://github.com/rhonsby). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
358
16665
16