typescript

star 1.2k

Skill: typescript

FranciscoMoretti By FranciscoMoretti schedule Updated 2/22/2026

name: typescript description: 'Skill: typescript'

Typing Guidelines

  • Avoid any at all cost. The types should work or they indicate a problem.
  • Never use as "any" or as unknown as to solve/avoid type errors. The types should work or they indicate a problem.
  • Avoid using as to cast to a specific type. The types should work or they indicate a problem.

Exports / Imports

  • Never create index barrel files (index.ts, index.js)
  • Always use direct imports with named exports
  • Always use inline interfaces with function parameters

Examples

Good - Inline interface with function:

export function processData({
  id,
  name,
  options,
}: {
  id: string;
  name: string;
  options: ProcessingOptions;
}): ProcessedResult {
  // implementation
}

Bad - Separated interface:

interface ProcessDataProps {
  id: string;
  name: string;
  options: ProcessingOptions;
}

export function processDAta({
  id,
  name,
  options,
}: ProcessDataProps): ProcessResult {
  // Implementation
}
Install via CLI
npx skills add https://github.com/FranciscoMoretti/chat-js --skill typescript
Repository Details
star Stars 1,179
call_split Forks 111
navigation Branch main
article Path SKILL.md
More from Creator
FranciscoMoretti
FranciscoMoretti Explore all skills →