Skip to content
0:00 / 0:00

#utilitytypes#partial#readonly

Utility Types - Advanced TypeScript

Dmytro Danylov

4K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Dmytro Danylov

Intermediate. Assumes working knowledge.

73K views7 years ago2 recommendations

Programming languagesTypeScript

Dmytro Danylov explains how to use TypeScript utility types like Partial, Required, Omit, and ReturnType to transform types.

TypeScript offers a number of utility types which we can use to transform one type into another. In this video we will talk about Partial, Required, Readonly, Record, Pick, Omit, Exclude, Extract, NonNullable, ReturnType, InstanceType, and ThisType. Table of Contents: - Partial - Required - Readonly - Record - Pick - Omit - Exclude - Extract - NonNullable - ReturnType - InstanceType - ThisType 👨‍💻 My Udemy Course: Using TypeScript with React udemy.com/course/react-with-typescript/?referralCode=1816455…

Why it's here

2 people recommend this

What people say. Recommended as a clear and readable guide to understanding and using TypeScript's built-in utility types.

u/JDtheDevin r/typescript • Recommends

On “Good resources for advanced typescript?”

For learning utility types in a more understandable and readable way, I found this video very helpful: link to this video

u/fpuenin r/typescript • Recommends

How often do you guys use the NotNullable utility type constructor? Seems especially useful for kicking undesired null or undefined values out of an expected API response type. For my own defined types, I thought it was not needed since they are already sharply defined. But this video says TS allows any type definition to be overridden by null/undefined by default, which surprised me: [video