This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.
Turn off typechecking of tsickle output #189
Closed
Description
Currently tsickle emits TS code that typechecks. This is nice because the TS compiler helps us spot our mistakes.
But it has some negative consequences:
- Because tsickle's input must be typechecked, using tsickle forces your builds to typecheck your app twice.
- Some Closure patterns are very difficult to express in legal TS.
- We use a pretty weird hack for fields (the annotations helper static method) because we can't generate idiomatic Closure constructors.
- When tsickle introduces a new value to capture a TS type, it's hard to make use of this value across modules.
As far as I understand TypeScript, as long as the code is syntactically valid, TS will generate something even if it's type-invalid. And I think that something is predictable (it's a syntactic transformation of the input).
Metadata
Metadata
Assignees
Labels
No labels