·typescript-interface-vs-type
</>

typescript-interface-vs-type

flpbalada/my-opencode-config

Guides when to use interface vs type in TypeScript. Use this skill when defining object types, extending types, or choosing between interface and type aliases.

3Installs·0Trend·@flpbalada

Installation

$npx skills add https://github.com/flpbalada/my-opencode-config --skill typescript-interface-vs-type

SKILL.md

This is the official TypeScript recommendation from the TypeScript Handbook.

When extending object types, always prefer interface extends over type intersections.

With interface extends, TypeScript raises errors at the definition when extending with incompatible properties:

Guides when to use interface vs type in TypeScript. Use this skill when defining object types, extending types, or choosing between interface and type aliases. Source: flpbalada/my-opencode-config.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/flpbalada/my-opencode-config --skill typescript-interface-vs-type
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is typescript-interface-vs-type?

Guides when to use interface vs type in TypeScript. Use this skill when defining object types, extending types, or choosing between interface and type aliases. Source: flpbalada/my-opencode-config.

How do I install typescript-interface-vs-type?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/flpbalada/my-opencode-config --skill typescript-interface-vs-type Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/flpbalada/my-opencode-config