This saved me HOURS of refactoring time

Опубликовано: 28 Сентябрь 2024
на канале: Matt Pocock
48,177
1.5k

Learning about the difference between optional properties (name?: string) and undefined unions (name: string | undefined) can give you an amazing productivity boost for certain refactors.

Become a TypeScript Wizard with Matt's upcoming TypeScript Course:

https://www.totaltypescript.com/

Follow Matt on Twitter

  / mattpocockuk