typescript-pipeline-operator
typescript-pipeline-operator copied to clipboard
[Discussion] Typechecking still fails
Howdy,
Although yes, it certainly would compile in this case, it would still break the typechecker since the typechecker doesn't yet understand the pipeline syntax. When babel compiles, it doesn't actually run the typechecker; it will simply remove all the typescript syntax and then compile as if it were all normal javascript.
As much as I and many others desperately want pipeline support in TS, there is no solution that doesn't involve changes to the typechecker as far as I can tell 😢