TypeScript

1003 readers
17 users here now

founded 2 years ago
MODERATORS
1
 
 

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
2
3
 
 

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?

4
5
6
 
 
7
1
A 10x Faster TypeScript (devblogs.microsoft.com)
submitted 3 months ago by [email protected] to c/[email protected]
8
9
10
11
12
13
14
15
16
17
18
 
 

A trick that I'd like sharing :)

19
20
21
 
 

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

I think object algebras have huge potential to improve the way complex software is written but I've never seen them used in practice. I think one reason why is that the research paper which introduced them is pretty hard to read. This post is my attempt to change that.

I've been working on this post off and on for like two years so I'm really excited to share it with people. It is very long. There's a lot of ground to cover.

22
 
 

The issue? I'm the idiot. Any suggestions for a guide to JS/TS for someone trying to learn about front-end development.

23
24
25
view more: next ›