alpheus-typescript
Installation
SKILL.md
Alpheus Coding Style (TypeScript)
Overview
- prefer functional programming
- prefer arrow functions, and prefer a single typed options-object parameter (suggested)
- prefer
createXnaming for factory functions - prefer return explicitly typed object from functions
- annotate every variable, parameter and return type explicitly
- prefer
typealiases overinterface - prefer
void 0overundefinedwherever it appears as a value - end every file that has named exports with grouped exports, type-only group first
When to Use
- creating a new file in a repo
- writing or editing any
.js/.ts/.jsx/.tsxfile - asked to "match Alpheus style" / "write like Alpheus"