Skip to main content

25 docs tagged with "typescript"

View all tags

@aemvite - Migrate an AEM ui.frontend from Webpack to Vite

A from-scratch guide to @aemvite, an open-source npm toolchain that replaces webpack, Babel, PostCSS, ESLint, and aem-clientlib-generator in an AEM Maven archetype ui.frontend with Vite, esbuild, and Sass - with a byte-identical clientlib output guarantee.

Advanced Types

Conditional types, mapped types, template literal types, the infer keyword, and recursive types with real-world use cases.

Basic Types

TypeScript's primitive types, type inference, type annotations, arrays, tuples, and the any, unknown, never, and void types.

Classes

TypeScript class syntax, access modifiers, readonly, constructors, inheritance, abstract classes, and implementing interfaces.

Enums & Literal Types

Numeric enums, string enums, const enums, literal types, discriminated unions, and exhaustive checks in TypeScript.

Functions

Typed parameters, return types, optional and default parameters, rest params, function overloads, void vs never, and arrow functions in TypeScript.

Generics

Generic functions, interfaces, and classes in TypeScript, plus constraints with extends, default type parameters, and keyof and typeof operators.

Interfaces & Type Aliases

Defining object shapes with interface and type, optional and readonly properties, extending interfaces, intersection types, and structural typing.

Introduction & Environment Setup

What TypeScript is, why it exists, how to install it via npm, tsconfig basics, compiling with tsc, and your first typed program.

Modules & Declaration Files

ES modules in TypeScript, import and export patterns, declaration files (.d.ts), DefinitelyTyped, and writing your own type declarations.

tsconfig & Tooling

Key tsconfig.json options explained, strict mode, target and lib, path aliases, project references, ts-node, tsx, and ESLint integration.

TypeScript

TypeScript adds static types to JavaScript - learn type annotations, interfaces, generics, union types, and how to set up a TypeScript project.

TypeScript in Practice

TypeScript with Node.js, TypeScript with React including event types and hooks, common real-world patterns, and migrating a JavaScript project to TypeScript.

TypeScript Integration

Strapi TypeScript: project setup, type generation, typing controllers and services, typed Document Service queries, custom type utilities, and migration from JS.

Utility Types

Practical examples of TypeScript's built-in utility types - Partial, Required, Readonly, Pick, Omit, Record, Exclude, Extract, NonNullable, ReturnType, and Parameters.