TypeScript excitement π
Thanks to @searyanc.dev for landing the new --erasableSyntaxOnly tsconfig flag. Heading for TS 5.8 Beta next week π
π· Guides users away from TS-only runtime features such as enum & namespace
π· Pairs nicely with Node's recent TypeScript support
https://github.com/microsoft/TypeScript/pull/61011
Thanks to @searyanc.dev for landing the new --erasableSyntaxOnly tsconfig flag. Heading for TS 5.8 Beta next week π
π· Guides users away from TS-only runtime features such as enum & namespace
π· Pairs nicely with Node's recent TypeScript support
https://github.com/microsoft/TypeScript/pull/61011
Comments
https://github.com/microsoft/TypeScript/issues/59601#issuecomment-2294010520
https://bsky.app/profile/robpalmer.bsky.social/post/3lbl4cv2nhk2m
export function foo() {}
declare namespace foo {
const prop = 1234;
}
And get no feedback that you accidentally told TS that "this exists, trust me" and could crash later.
But maybe it's not worth it?