FreeTyping

TypeScript Code Typing Practice

60
seconds
0
WPM
100%
accuracy
non-null assertion ! Pick<User, 'name'> template literal type Partial<User> asserts condition namespace App {} union type | intersection type & Required<Props> extends keyof type guard type Props = { id: number; } const data: string[] = []; type narrowing optional chaining ?. discriminated union type assertion nullish coalescing ?? is keyword import type { Props } index signature satisfies Type function greet(name: string): void {} infer R [key: string]: value interface User { name: string; } readonly property: string; optional?: boolean; conditional type keyof typeof obj declare module typeof import generic<T>(arg: T): T {} let count: number = 0; never type enum Status { Active, Inactive } as const Omit<User, 'id'> Record<string, number> mapped type export type { User } unknown vs any non-null assertion ! Pick<User, 'name'> template literal type Partial<User> asserts condition namespace App {} union type | intersection type & Required<Props> extends keyof type guard type Props = { id: number; } const data: string[] = []; type narrowing optional chaining ?. discriminated union type assertion nullish coalescing ??
Click the text area and start typing to begin

Practice typing TypeScript code with types and interfaces

Related Practice