From b6701c86cfd0b35587ca3c417d1b669d562992bd Mon Sep 17 00:00:00 2001 From: "Rodrigo F. Fernandes" Date: Fri, 3 Mar 2017 09:50:37 -0300 Subject: [PATCH] Updated tsconfig.json Changed strictNullCheck to true --- node-powershell/node-powershell-tests.ts | 5 ++--- node-powershell/tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/node-powershell/node-powershell-tests.ts b/node-powershell/node-powershell-tests.ts index e1b28e4b92..a60f9db331 100644 --- a/node-powershell/node-powershell-tests.ts +++ b/node-powershell/node-powershell-tests.ts @@ -10,12 +10,11 @@ var ps = new nodePowershell(options); // Methods ps.addCommand('Write-Host node-powershell', [ { name: 'foregroundcolor', value: 'red' }, - { name: 'nonewline', value: null } //switch + { name: 'nonewline' } //switch ]).then((cmdsArr: string[]) => { }).catch((err: any) => { }); ps.addCommand('Write-Host node-powershell', [ - { foregroundcolor: 'red' }, - { nonewline: null } //switch + { foregroundcolor: 'red' } ]); ps.invoke().then((output: string) => { }).catch((err: any) => { }); diff --git a/node-powershell/tsconfig.json b/node-powershell/tsconfig.json index c8ca0fed82..6cd3607f4f 100644 --- a/node-powershell/tsconfig.json +++ b/node-powershell/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../"