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

Installing @types Packages

Quiz
28

Gradual JS to TS Migration

Quiz
29

declare namespace Usage

Quiz
30

@param and @type Precision

Quiz
31

Typing the global Object

Quiz
32

Automatic Type Acquisition

Quiz
33

@ts-ignore vs @ts-expect-error

Quiz
34

@ts-check and @ts-nocheck

Quiz
35

JSDoc Type Annotations

Quiz
36

Declaring Untyped Modules

Quiz
37

Ambient Variable and Function Declarations

Quiz
38

The declare Keyword

Quiz
39

Purpose of Declaration Files

Quiz
40

Overloaded Signatures in .d.ts

Code Quiz
41

UMD Global Declaration Syntax

Code Quiz
42

JSDoc @type Annotation

Code Quiz
43

Implicit any from JS Import

Code Quiz
44

JSDoc @param and @returns

Code Quiz
45

Installing @types Packages

Code Quiz
46

Ambient Class Shape

Code Quiz
47

Ambient const enum

Code Quiz
48

Ambient Function Signature

Code Quiz
49

declare namespace Members

Code Quiz
50

Triple-Slash Reference Syntax

Code Quiz
51

Value Inside a .d.ts File

Code Quiz
52

Ambient Variable with declare

Code Quiz
53

Wildcard Module Declarations

Flashcard
54

Ambient Global Variables

Flashcard
55

Handling Implicit any

Flashcard
56

Installing @types Packages

Flashcard
57

Structure of an @types Package

Flashcard
58

Gradual JS to TS Migration

Flashcard
59

Global Augmentation with declare global

Flashcard
60

@ts-check and @ts-nocheck

Flashcard
61

The declare Keyword

Flashcard
62

Triple-Slash Directives

Flashcard
63

@ts-ignore vs @ts-expect-error

Flashcard
64

JSDoc for Typing JavaScript

Flashcard
65

Ambient Functions

Flashcard
Code QuizIntermediate

Ambient Function Signature

Understanding why an ambient function must not have a body.

Codetypescript
declare function formatDate(input: Date): string {
  return input.toISOString();
}

What is the bug in this ambient function declaration?