askill
typescript-patterns

typescript-patternsSafety --Repository

TypeScript patterns including path aliases, strict typing, type guards, and validation patterns. Use when working with TypeScript code, imports, interfaces, type definitions, or when user mentions types, interfaces, type guards, validation, Valibot, imports, path aliases, type safety, or type assertions.

7 stars
1.2k downloads
Updated 2/7/2026

Package Files

Loading files...
SKILL.md

TypeScript Patterns

TypeScript patterns and strict typing rules.

Quick Reference

  • Imports: See imports.md for path aliases (~/@, ~~/, #shared, #server)
  • Types: See types.md for interfaces and when to use interface vs type
  • Type Guards: See guards.md for type predicates and runtime type checking
  • Type Assertions: See type-assertions.md for avoiding as keyword
  • Validation: See validation.md for Valibot validation patterns

Strict Typing Rules

  • NO any types - always use proper types or unknown
  • Explicit return types on exported functions
  • Use unknown for uncertain types, then narrow with type guards
  • Import types separately: import type { ... } when only importing types

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated2/7/2026
PublisherPerdolique

Tags

No tags yet.