TypeScript/scripts
Andy e53e56cf82
Enable '--strictNullChecks' (#22088)
* Enable '--strictNullChecks'

* Fix API baselines

* Make sys.getEnvironmentVariable non-nullable

* make properties optional instead of using `| undefined` in thier type

* reportDiagnostics should be required

* Declare firstAccessor as non-nullable

* Make `some` a type guard

* Fix `getEnvironmentVariable` definition in tests

* Pretend transformFlags are always defined

* Fix one more use of sys.getEnvironmentVariable

* `requiredResponse` accepts undefined, remove assertions

* Mark optional properties as optional instead of using `| undefined`

* Mark optional properties as optional instead of using ` | undefined`

* Remove unnecessary null assertions

* Put the bang on the declaration instead of every use

* Make `createMapFromTemplate` require a parameter

* Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional

* Plumb through undefined in emitLsit and EmitExpressionList

* `ElementAccessExpression.argumentExpression` can not be `undefined`

* Add overloads for `writeTokenText`

* Make `shouldWriteSeparatingLineTerminator` argument non-nullable

* Make `synthesizedNodeStartsOnNewLine` argument required

* `PropertyAssignment.initializer` cannot be undefined

* Use one `!` at declaration site instead of on every use site

* Capture host in a constant and avoid null assertions

* Remove few more unused assertions

* Update baselines

* Use parameter defaults

* Update baselines

* Fix lint

* Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions

* Make Node#symbol and Type#symbol non-optional to reduce assertions

* Make `flags` non-nullable to reduce assertions

* Convert some asserts to type guards

* Make `isNonLocalAlias` a type guard

* Add overload for `getSymbolOfNode` for `Declaration`

* Some more `getSymbolOfNode` changes

* Push undefined suppression into `typeToTypeNodeHelper`

* `NodeBuilderContext.tracker` is never `undefined`

* use `Debug.assertDefined`

* Remove unnecessary tag

* Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 14:46:57 -07:00
..
hooks We can go simpler 2015-09-24 17:04:57 -07:00
importDefinitelyTypedTests Fix jake task, style/const in script. 2015-09-18 13:13:36 -07:00
tslint Enable '--strictNullChecks' (#22088) 2018-05-22 14:46:57 -07:00
types Use @types/travis-fold (#23694) 2018-04-25 16:15:06 -07:00
authors.ts Add example to command description 2018-01-17 11:59:01 -08:00
bisect-test.ts Remove bisect.cmd, remove reference to missing dts, update usage (#18353) 2017-09-09 15:56:11 -07:00
browserify-optional.js Fixes issues that were causing runtests-browser to fail 2016-04-07 16:13:28 -07:00
buildProtocol.ts Enable '--strictNullChecks' (#22088) 2018-05-22 14:46:57 -07:00
configurePrerelease.ts Update configurePrerelease to not utilize ts internals (#23476) 2018-04-17 15:42:31 -04:00
createBenchmark.ts Add script to create a benchmark test using the compiler 2015-04-24 11:00:14 -07:00
errorCheck.ts Turn off a few rules and more cleanup post merge 2015-07-08 17:42:26 -07:00
generateLocalizedDiagnosticMessages.ts Apply 'variable-name' tslint rule (#19743) 2017-11-06 09:23:47 -08:00
ior.ts Fix incorrect relative module name detection (#19702) 2017-11-03 08:59:19 -07:00
link-hooks.js Add git hooks 2015-09-24 17:00:27 -07:00
open-user-pr.ts Have the bot link the build associated with the PR (#24176) 2018-05-16 13:12:17 -07:00
parallel-lint.js use ES6 library when building tslint rules (#14474) 2017-03-05 15:41:47 -08:00
processDiagnosticMessages.ts Enable '--strictNullChecks' (#22088) 2018-05-22 14:46:57 -07:00
processDiagnosticMessages.tsconfig.json Fix jakefile case and circular references 2018-04-12 16:11:16 -07:00
VSDevMode.ps1 Fixed VSDevMode.ps1 parameter info 2015-02-27 21:24:28 +01:00
word2md.ts Addressing CR feedback 2015-12-18 19:06:44 -08:00