Nothing stands still for long: https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/
TS4 features keep landing in VSCode with every version, so I'd say we're getting closer and closer to release now.
Will esbuild work with TS4 as is? Or will you need to implement support for the new features (such as variadic tuples, &&=
, etc)
Equally, with a few breaking changes between 4.0 and 3.x, how will you handle backward compatibility?
I believe esbuild should fully support TypeScript 4. If you run into any issues, please report them.
I have already implemented these TypeScript 4 features:
See the release notes for more details.
These TypeScript 4 features are part of the type system, which is irrelevant for esbuild since esbuild doesn't do type checking (you still need to run the TypeScript compiler for type checking when using esbuild):
unknown
on catch
Clause Bindingslib.d.ts
Changesdelete
must be optional.As far as I'm aware all breaking changes are type system changes, so there are no backwards compatibility concerns with esbuild and TypeScript.
Perfect, thanks. I'll swap to the latest beta and open any issues if I find them.
Most helpful comment
I believe esbuild should fully support TypeScript 4. If you run into any issues, please report them.
I have already implemented these TypeScript 4 features:
See the release notes for more details.
These TypeScript 4 features are part of the type system, which is irrelevant for esbuild since esbuild doesn't do type checking (you still need to run the TypeScript compiler for type checking when using esbuild):
unknown
oncatch
Clause Bindingslib.d.ts
Changesdelete
must be optional.As far as I'm aware all breaking changes are type system changes, so there are no backwards compatibility concerns with esbuild and TypeScript.