typespec-functions
CommunityPower TypeSpec with extern functions.
Software Engineering#typespec#higher-order#extern-fn#js-backend#function-types#type-transform#value-computation
Authorhafley66
Version1.0.0
Installs0
System Documentation
What problem does it solve?
TypeSpec functions let you declare extern fn declarations and provide JavaScript backends via $functions, enabling dynamic type logic, value computation, and higher-order patterns in TypeSpec code.
Core Features & Use Cases
- Declare extern fn that compute and return types or values
- Implement function backends via the $functions export for clean JS bindings
- Use function types for higher-order patterns and type transformations
- Transform types without mutating existing instances and compute defaults with arbitrary JS logic
- Build libraries that accept function-valued parameters and templates
Quick Start
Declare an extern fn and bind a JS implementation via $functions to implement a new type transformation
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typespec-functions Download link: https://github.com/hafley66/claude-research/archive/main.zip#typespec-functions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.