World Congress 2022 β€’ Jun 15, 2022

Svelte β™₯ TypeScript and so will you

Ivan Hofer

Svelte's simplicity no longer requires sacrificing type safety. Master generic components, svelte-check, and typed contexts to eliminate runtime exceptions and scale your frontend architecture.

Pause
Mute Enter Fullscreen
#1 about 4 min

The importance of TypeScript in enterprise Svelte projects

Adding static type checking improves the long-term maintainability of large enterprise applications built with Svelte.

#2 about 3 min

Initializing a new SvelteKit project via the CLI

Running command line setup processes scaffolds a new application structure with basic TypeScript configuration.

#3 about 2 min

Configuring the Svelte preprocessor for TypeScript support

Exploring the generated configuration files reveals how the preprocessor integrates different languages into components.

#4 about 3 min

Creating the first typed Svelte component

Adding language attributes to script tags enables comprehensive property linting and syntax highlighting for components.

#5 about 2 min

Catching application errors with the svelte-check utility

Running background validation scripts across an entire project catches hidden compilation issues locally and inside continuous integration pipelines.

#6 about 3 min

Handling optional props and complex API responses

Leveraging discriminated unions prevents layout errors when rendering unpredictable application payloads or setting default property values.

#7 about 3 min

Implementing generic types inside Svelte components

Defining generic declarations allows developers to construct modular components capable of handling multiple variable structures cleanly.

#8 about 4 min

Typing unhandled component props and native DOM elements

Restoring type safety on custom wrapper components requires explicit type definitions for remaining attributes and standard element properties.

#9 about 4 min

Making Svelte context getters and setters type-safe

Securing global state variables via isolated wrapper files avoids loose string-based mapping collisions by using explicit object references.

#10 about 3 min

Adding generated types to SvelteKit routing endpoints

Extending request handlers with generated relative path types automatically defines dynamic network parameters natively.

#11 about 2 min

Exploring learning resources and internationalization libraries

Studying up-to-date community examples accelerates feature velocity when integrating framework-agnostic tooling.

Matching moments

1:21 min

History and timeline of Svelte and SvelteKit

Markus Hatvan Β· LIVE

2:00 min

The origins and early problems solved by TypeScript

Dani Coll Dani Coll Β· WWC Europe 2026

4:52 min

Core concepts and benefits of the Svelte framework

Markus Hatvan Β· LIVE

43 sec

Reviewing the benefits of building with Svelte conventions

Benjamin Glusa Β· LIVE

49 sec

Exploring a basic SvelteKit project structure and scripts

Markus Hatvan Β· LIVE

1:20 min

Core takeaways for end-to-end TypeScript development

Marco Podien Marco Podien Β· WWC 2025

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Architecting AI in Angular: WebMCP, A2UI, and the Agent Experience

Ankita Sood

Sr. Principal Engineer @ Secureworks | Angular GDE

Ankita Sood
Open session

World Congress 2026 North America

Beyond Vibe Coding: An AI Builder’s Guide to Migrating 10k+ React Components

Shubham Chaurasia

Senior Software Engineer @ Meta

Shubham Chaurasia
Open session

World Congress 2026 North America

When Humans Stop Writing Code: Rethinking Languages, Compilers, and Responsibility

Simon Auer

Organizer of flutter vienna meetup and CEO of marqably

Simon Auer
Open session

World Congress 2026 North America

Testing React Backends Like a Pro: Mocking Databases with SQLite

David Morris

Solution Architect

David Morris
Open session

World Congress 2026 North America

The spectrum of agentic coding: From vibe coding to high-quality software engineering

YK Sugi

Developer Experience Manager at Eventual

YK Sugi
Open session

World Congress 2026 North America

Full Stack with Flutter - are we there yet?

Nemanja Stoőić

Senior Flutter Developer

Nemanja Stoőić