Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit db539fc

Browse files
committed
fix(typings): make all config parameters optional
1 parent 46b4bc6 commit db539fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function hasProcessFlag(flag) {
88
return process.argv.join('').indexOf(flag) > -1
99
}
1010

11-
export type WebpackConfigWithMetadata = WebpackConfig & { metadata: any }
11+
export type WebpackConfigWithMetadata = WebpackConfig & { metadata?: any }
1212
export type EasyWebpackConfig = WebpackConfigWithMetadata | ((this: WebpackConfigWithMetadata) => WebpackConfigWithMetadata)
1313

1414
export function generateConfig(...configs: Array<EasyWebpackConfig>) {

src/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export interface Webpack {
281281
* Object: Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array. If its' array all modules are loaded upon startup. The last one is exported. If it's a string look at the definition for string.
282282
* String: The entry point for one output file. The string is resolved to a module which is loaded upon startup.
283283
*/
284-
entry: WebpackType.EntryItem | {[key: string]: WebpackType.EntryItem};
284+
entry?: WebpackType.EntryItem | {[key: string]: WebpackType.EntryItem};
285285

286286
/**
287287
* Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.

0 commit comments

Comments
 (0)