Skip to content
SkilVault
Sign inGet started

ts-interface-or-type

Languages & Frameworks
Signed by SkilVault

Decides whether a TypeScript shape should be declared as an interface or as a type alias, following the official preference for interfaces on object shapes, aliases for unions, tuples, mapped, conditional and template-literal types, and interface extends in place of intersections when specialising a shape. Use when creating, extending or reviewing TypeScript object types, choosing between the two keywords, writing class contracts, or augmenting types owned by a library. Not for runtime JavaScript behaviour, deliberate type-level utility libraries, or languages other than TypeScript.

Version
v1.0.0
Size
13 KB
Updated
2026-10-11
$ skilvault read --manual ts-interface-or-type

Your client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.