solid-typescript

Configure TypeScript and SolidJS for strongly-typed component development.

2|2|Updated May 1, 2026
One-click install
npx skills add https://github.com/adamhjk/mvtt --skill solid-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-typescript
Source: https://github.com/adamhjk/mvtt/tree/main/.claude/skills/solid-typescript
Command: npx skills add https://github.com/adamhjk/mvtt --skill solid-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of configuring and typing SolidJS projects with TypeScript, making component creation, JSX integration, and event handling more precise and less error-prone.

Core Features & Use Cases

  • TypeScript Configuration: Guides setup of tsconfig.json for SolidJS compatibility with correct JSX and import settings.
  • Component Typing: Clarifies how to declare various SolidJS component types, including generics and function components.
  • JSX Type Augmentation: Explains how to extend the JSX namespace for custom directives, events, and properties.
  • Use Case: You want to build a strongly typed, scalable SolidJS application with custom directives and event handlers, ensuring type safety across components.

Quick Start

Set up your tsconfig.json with jsx: "preserve" and jsxImportSource: "solid-js", then use proper Component types and augmentation to write type-safe Solid components.

Frequently Asked Questions about solid-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure TypeScript for SolidJS component development?

To configure TypeScript for SolidJS, set `jsx: "preserve"` and `jsxImportSource: "solid-js"` in your `tsconfig.json` to ensure correct JSX compilation and import settings for type-safe component creation.

How do I type SolidJS components with TypeScript generics?

You can type SolidJS components by importing and applying the `Component` type from `solid-js`, which supports generics and proper function component declarations for robust type safety across your application.

How does JSX type augmentation work for custom directives in SolidJS?

JSX type augmentation in SolidJS extends the JSX namespace to include custom directives, events, and properties, allowing TypeScript to recognize and validate custom element attributes within your components.

Can I use TypeScript to type custom event handlers in SolidJS?

Yes, you can type custom event handlers in SolidJS by augmenting the JSX namespace, which provides precise typing for events and ensures error-free event handling within your strongly typed components.

Why does my SolidJS TypeScript project fail to recognize custom JSX properties?

SolidJS TypeScript projects fail to recognize custom JSX properties when the JSX namespace is not augmented, requiring you to extend it with proper module declarations to resolve type errors.

What's the best way to ensure type safety in a scalable SolidJS application?

The best way to ensure type safety in a scalable SolidJS application is combining correct `tsconfig.json` setup, proper `Component` typing, and JSX namespace augmentation for custom directives and event handlers.