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

Commit

Permalink
fix(typings): make all config parameters optional
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Oct 29, 2016
1 parent 46b4bc6 commit db539fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function hasProcessFlag(flag) {
return process.argv.join('').indexOf(flag) > -1
}

export type WebpackConfigWithMetadata = WebpackConfig & { metadata: any }
export type WebpackConfigWithMetadata = WebpackConfig & { metadata?: any }
export type EasyWebpackConfig = WebpackConfigWithMetadata | ((this: WebpackConfigWithMetadata) => WebpackConfigWithMetadata)

export function generateConfig(...configs: Array<EasyWebpackConfig>) {
Expand Down
2 changes: 1 addition & 1 deletion src/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export interface Webpack {
* 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.
* String: The entry point for one output file. The string is resolved to a module which is loaded upon startup.
*/
entry: WebpackType.EntryItem | {[key: string]: WebpackType.EntryItem};
entry?: WebpackType.EntryItem | {[key: string]: WebpackType.EntryItem};

/**
* 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`.
Expand Down

0 comments on commit db539fc

Please sign in to comment.