TypeScriptWorking with JavaScript & Type Declarations

65 items

1

Typing a React onChange Handler

Code Quiz
2

Typing useState & Event Handlers

Quiz
3

Typing React Props, Hooks & Events

Slides / Video
4

Typing React Props, Hooks & Events

Flashcard
5

Typing React Props, State & Events

Slides / Video
6

Typing React Props, State & Events

Flashcard
7

Typing React Props Correctly

Code Quiz
8

Typing React Props with Interfaces

Quiz
9

Typing React Props & State

Slides / Video
10

Typing React Props & State

Flashcard
11

Module Augmentation Basics

Flashcard
12

JSDoc @typedef Property Syntax

Code Quiz
13

Misplaced @ts-ignore Directive

Code Quiz
14

Module Augmentation Basics

Slides / Video
15

Type-Checking JS with allowJs and checkJs

Slides / Video
16

Generating Declaration Files Automatically

Slides / Video
17

Writing Declaration Files for Untyped Libraries

Slides / Video
18

Installing @types from DefinitelyTyped

Slides / Video
19

Ambient Modules and Global Declarations

Slides / Video
20

The declare Keyword for Ambient Declarations

Slides / Video
21

What Declaration Files Are

Slides / Video
22

esModuleInterop for JS Interop

Slides / Video
23

typeRoots and types Configuration

Slides / Video
24

TypeScript Check Comments Explained

Slides / Video
25

Gradual Migration to TypeScript

Slides / Video
26

JSDoc Type Annotations in JavaScript

Slides / Video
27

JSDoc Type Annotations

Quiz
28

Gradual JS to TS Migration

Quiz
29

declare namespace Usage

Quiz
30

@ts-check and @ts-nocheck

Quiz
31

Typing the global Object

Quiz
32

Ambient Variable and Function Declarations

Quiz
33

Automatic Type Acquisition

Quiz
34

@param and @type Precision

Quiz
35

The declare Keyword

Quiz
36

@ts-ignore vs @ts-expect-error

Quiz
37

Purpose of Declaration Files

Quiz
38

Declaring Untyped Modules

Quiz
39

Installing @types Packages

Quiz
40

UMD Global Declaration Syntax

Code Quiz
41

Implicit any from JS Import

Code Quiz
42

JSDoc @type Annotation

Code Quiz
43

JSDoc @param and @returns

Code Quiz
44

Overloaded Signatures in .d.ts

Code Quiz
45

Ambient const enum

Code Quiz
46

Value Inside a .d.ts File

Code Quiz
47

Triple-Slash Reference Syntax

Code Quiz
48

Ambient Variable with declare

Code Quiz
49

Ambient Class Shape

Code Quiz
50

Installing @types Packages

Code Quiz
51

declare namespace Members

Code Quiz
52

Ambient Function Signature

Code Quiz
53

@ts-check and @ts-nocheck

Flashcard
54

Installing @types Packages

Flashcard
55

Structure of an @types Package

Flashcard
56

The declare Keyword

Flashcard
57

Handling Implicit any

Flashcard
58

Wildcard Module Declarations

Flashcard
59

Gradual JS to TS Migration

Flashcard
60

JSDoc for Typing JavaScript

Flashcard
61

@ts-ignore vs @ts-expect-error

Flashcard
62

Ambient Functions

Flashcard
63

Triple-Slash Directives

Flashcard
64

Global Augmentation with declare global

Flashcard
65

Ambient Global Variables

Flashcard
QuizAdvanced

Typing React Props with Interfaces

Learn the idiomatic way to type a React function component's props in TypeScript.

In TypeScript, what is the idiomatic way to type the props of a React function component that receives a required 'title' string and an optional 'count' number?