An experimental TypeSpec syntax for Lexicon
README.md

@typelex/emitter#

TypeSpec emitter for generating ATProto Lexicon definitions.

See https://typelex.org/

Installation#

npm install @typelex/emitter

Usage#

Add the emitter to your TypeSpec configuration:

# tspconfig.yaml
emit:
  - "@typelex/emitter"
options:
  "@typelex/emitter":
    output-dir: "./lexicons"

Then compile your TypeSpec files:

tsp compile .

Development#

npm install
npm run build
npm link  # for local testing