No video

why `exactOptionalPropertyTypes` isn't in strict-mode

  Рет қаралды 425

Michigan TypeScript

Michigan TypeScript

Күн бұрын

With exactOptionalPropertyTypes enabled, TypeScript applies stricter rules around how it handles properties on type or interfaces which have a ? prefix. Read more here: www.typescript....
Daniel Rosenwasser (a TypeScript team member on this call) once said (github.com/mic... "If we were to start TypeScript over again, we believe the behavior of strictOptionalProperties would be on by default; however, this strictness option comes at a time when the community is much more mature with lots of existing code."
I'll leave it to you to decide, but here at Michigan TypeScript we're big fans of this flag and consider it absolutely essential if you're shipping a mature TypeScript library.
This video was part of a little mini-series discussing a few different topics with Ryan and Daniel. You can watch a playlist of the whole discussion ( • how safe is "safe enou... ) or you can pick an individual video:
- how safe is "safe enough" for TypeScript [part 1] - • how safe is "safe enou...
- Flow and TypeScript actually have the same soundness goal (!!) [part 2] - • Flow and TypeScript ac...
- how the TypeScript team factors in power users [part 3] - • how the TypeScript tea...
- TypeScript team members' reaction to ts-reset - [part 4] • TypeScript team member...
- why `exactOptionalPropertyTypes` isn't in strict-mode [part 5] - • why `exactOptionalProp...
- replacing any with unknown everywhere - the story of the failed strictAny flag [part 6] - • replacing `any` with `...
- what will TypeScript be like in the distant future? [part 7] - • TypeScript in the dist...
MiTS Discord: discord.michig...
Twitter: / mitypescript
Mastodon: fosstodon.org/...
Threads: www.threads.ne...
Instagram: / michigantypescript
TikTok: / michigantypescript

Пікірлер
Distributive Conditionals as fast as possible
8:17
Michigan TypeScript
Рет қаралды 846
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 85 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 14 МЛН
Inferred Type Predicates - TypeScript 5.5's top new feature
1:10:04
Michigan TypeScript
Рет қаралды 1,3 М.
no one writes JavaScript anyway.. ReScript: the ReasonML successor
1:11:41
Michigan TypeScript
Рет қаралды 8 М.
the biggest mistake people make when dual bundling [part 2]
0:34
Michigan TypeScript
Рет қаралды 76
how Andarist time-travel debugs the TypeScript compiler with Replay
52:39
recording meetups like it's a 4,000 person conference: how and why
33:18
Michigan TypeScript
Рет қаралды 1,3 М.
the biggest mistake people make when dual bundling [part 1]
0:35
Michigan TypeScript
Рет қаралды 306
backlash about exception handling
0:35
Michigan TypeScript
Рет қаралды 467
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН