Skip to content

Commit cd7d8c6

Browse files
Larry1123johnnyreilly
authored andcommitted
Make options Partial<Options> (#141)
* Make options Partial<Options> When working with webpack.config.ts ts complains when you try to pass a partial object literal. This fixes that. * Fixed the build. Had not ran a full build and test before. Had just quickly done an edit to make the webpack file to stop complaining, was hoping it would pass the auto build. * Ready release
1 parent 45dc15a commit cd7d8c6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.4.6
2+
3+
* [Fix(types): Make options Partial<Options> ](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/141) (#140)
4+
15
## v0.4.5
26

37
* [Fix(types): Add types to the plugin](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/139) (#137)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fork-ts-checker-webpack-plugin",
3-
"version": "0.4.5",
3+
"version": "0.4.6",
44
"description": "Runs typescript type checker and linter on separate process.",
55
"main": "lib/index.js",
66
"types": "lib/types/index.d.ts",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ForkTsCheckerWebpackPlugin {
6464
static ONE_CPU_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 1);
6565
static TWO_CPUS_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 2);
6666

67-
options: Options;
67+
options: Partial<Options>;
6868
tsconfig: string;
6969
tslint: string | true;
7070
watch: string[];
@@ -104,7 +104,7 @@ class ForkTsCheckerWebpackPlugin {
104104

105105
vue: boolean;
106106

107-
constructor(options: Options) {
107+
constructor(options?: Partial<Options>) {
108108
options = options || {} as Options;
109109
this.options = Object.assign({}, options);
110110

0 commit comments

Comments
 (0)