51
52
53
54
55
 
 

This is an attempt to unify a few threads around type safety that I’ve encountered and put a slightly different spin on them.

56
57
Announcing TypeScript 5.9 (devblogs.microsoft.com)
58
59
Announcing TypeScript 5.9 Beta (devblogs.microsoft.com)
60
 
 

cross-posted from: https://programming.dev/post/32376875

Biome is a formatter and linter for web languages: JavaScript, TypeScript, CSS, HTML, JSON, and GraphQL.

Version 2 adds type-aware lint rules and it is the first TypeScript linter that does not require tsc. Other new features include:

  • Monorepo support
  • GritQL Plugins
  • Revamped, configurable import sorting
  • Linter domains
  • Bulk suppressions
  • Analyzer assists
  • Many new lint rules
61
submitted 1 year ago by to c/typescript@programming.dev
62
 
 

I'd like to validate untrusted config JSON submitted to my application against a TypeScript interface. If it's bad, I'd like to serialize a TypeScript object with default values, and suggest it as a pattern.

Last time I looked, TypeScript didn't provide runtime access to types and interfaces, so I'm not clear if that's possible without build-time tomfoolery.

I'd prefer to avoid JSON schemas if I can, but I guess that's an option too.

Are there libraries or new-ish language features that I could use?

63
64
65
66
A 10x Faster TypeScript (devblogs.microsoft.com)
submitted 1 year ago by to c/typescript@programming.dev
67
68
69
70
71
72
73
74
Announcing TypeScript 5.8 (devblogs.microsoft.com)
submitted 1 year ago by to c/typescript@programming.dev
75
Announcing TypeScript 5.8 Beta (devblogs.microsoft.com)
submitted 2 years ago by to c/typescript@programming.dev
view more: ‹ prev next ›