-
Notifications
You must be signed in to change notification settings - Fork 55
[RFC] Typescript type checking options #184
Comments
There was a TS compilation problem caused by Agree that proposed strategy to incrementally introduce this functionality back (by means of these discrete flags) is a good option for us, so that we will be able to carefully weight benefits and potential TS compilation problems (increased compilation time, overall stability of compilation process) with each option being introduced 👍 |
Note, we resolved to disable strictNullChecks for now and align closely to projects A and B. |
@kuzhelov - AFAIK the problem in #158 was caused by Plan: |
not valid anymore |
Stardust uses Typescript, but all it's type checking options are disabled, which kills a lot of Typescript's power.
Enabling (some of) the checks would make the code better and it'd easier to enable them in the early stage of the project.
I went through the list of compiler options which could be worth considering and also checked tsconfig in other projects which use Typescript.
noImplicitReturns
noImplicitAny
(1)any
type.noImplicitThis
(1)this
expressions with an impliedany
type.noUnusedParameters
noUnusedLocals
alwaysStrict
(1)"use strict"
for each source filestrictNullChecks
(1)null
andundefined
values are not in the domain of every type and are only assignable to themselves andany
(the one exception being thatundefined
is also assignable tovoid
).strictFunctionTypes
(1)strictPropertyInitialization
(1)--strictNullChecks
be enabled in order to take effect.(1) part of
--strict
Default value for all options is
false
.Can we think of what would make sense to be enabled?
The text was updated successfully, but these errors were encountered: