Skip to main content

TypeSpec

This parser lets you use TypeSpec as the source for a Basketry project. Add it to your pipeline to generate code, documentation, or apply rules directly from your TypeSpec definition.

Install

npm install @basketry/typespec@alpha

Basic Usage

info

This plugin only supports JSON-RPC. Run Basketry with the experimental RPC engine: npx basketry --engine rpc

basketry.config.json
{
"source": "petstore.tsp",
"parser": "basketry-typespec"
}