egghead.io
illustration for TypeScript: Tips and Tricks

Course

TypeScript: Tips and Tricks

  1. 1
    Use Partial to Create Partially Fillable Types in TypeScript
    1m 15s
  2. 2
    Make your optional fields required in TypeScript
    25s
  3. 3
    Create a Type with Some Fields of Another Type in TypeScript with Pick
    55s
  4. 4
    Exclude Properties from a Type in TypeScript
    42s
  5. 5
    Create Immutable Types in TypeScript
    2m 52s
  6. 6
    Ignore Null or Undefined Values with TypeScript Non-Null Assertion Operator
    1m 44s
  7. 7
    Create Type From Any Given Data in TypeScript
    1m 16s
  8. 8
    Create Dynamically Typed Strings Using Template Literal Types
    1m 24s
  9. 9
    Create Class Properties using Constructor Assignment
    53s
  10. 10
    Avoid errors using unknown type
    2m 4s
  11. 11
    Create mapped types using Record type
    1m 19s
  12. 12
    Reduce duplicate types with Generic Types
    2m 12s
  13. 13
    Merge Types using Intersection Operator
    57s
  14. 14
    Verify if some literal value satisfies a given type
    56s

Create Type From Any Given Data in TypeScript

Kamran Ahmed
InstructorKamran Ahmed
  • javascript
    JavaScript
  • typescript
    TypeScript

Share this video with your friends

Send Tweet

TypeScript can infer the type of a variable by looking at the data assigned to it. It also allows you to create a reusable type that it has inferred and later reuse it in your application. In this lesson, we look at the typeof operator and see how we can use it to create reusable types from data.

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions