TypeScript and ECMAScript Modules
A guide to using TypeScript with native ECMAScript modules, covering configuration and importing from CDNs.
Persönlicher Blog über TypeScript und Webentwicklung
180 Articles from this blog
A guide to using TypeScript with native ECMAScript modules, covering configuration and importing from CDNs.
A developer explains their reasons for avoiding the React.FC type in TypeScript+React projects, citing issues with function typing and implicit children.
A guide to common React component patterns using TypeScript, focusing on function components, props, and type definitions.
Explains how to add TypeScript types for new DOM APIs like ResizeObserver by augmenting global and lib.dom.d.ts.
A guide to setting up a Vite project with Preact and TypeScript, including configuration steps and setup tips.
A technical guide on converting union types to intersection types in TypeScript using conditional types and function type inference.
A technical guide on using Eleventy's pagination feature to automatically generate Twitter card images (SVG) for blog posts.
Explores if large Node.js module dependencies impact performance in regular apps vs. Serverless functions, based on community insights.
A preview of Variadic Tuple Types, a new feature in the upcoming TypeScript 4.0 release, with examples and use cases.
Explains a TypeScript issue with Object.keys and proposes solutions for better type safety when iterating over object properties.
A developer details the fourth relaunch of their personal blog, migrating from Jekyll to the 11ty static site generator for more flexibility and performance.
Explains how to correctly type a custom React hook to return a tuple instead of an array, fixing TypeScript type inference issues.
Explains how to use TypeScript assertion signatures with Object.defineProperty to properly type dynamically added object properties.
A guide to using type predicates and helper functions in TypeScript to safely check for object properties and narrow types.
Explains boolean values in JavaScript and TypeScript, including truthy/falsy values, the Boolean function, and TypeScript's boolean type.
Explains the void operator in JavaScript and the void type in TypeScript, highlighting their differences and common use cases.
An explanation of the Symbol primitive in JavaScript and TypeScript, covering creation, uniqueness, and use cases.
A developer explains their journey from skepticism to embracing TypeScript, highlighting its benefits for modern JavaScript development.
A guide to extending TypeScript's JSX interfaces for React to support new HTML attributes like lazy loading.
Explains how to validate mapped types and use const context in TypeScript for better type safety with object keys.