Typed, callable api blocks for .wrn files: sectioned request/response/error, callable from client code as api.name(input), type-checked by tsc against the route contracts. Also two fixes found along the way: defineEndpoint never received its input through the real router, so every typed endpoint was validating undefined; and v.boolean() silently coerced any unrecognised string to false. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
16 lines
373 B
JSON
16 lines
373 B
JSON
{
|
|
"name": "@wrnexus/syntax",
|
|
"version": "0.8.10",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./parser": "./src/parser.ts",
|
|
"./tokenizer": "./src/tokenizer.ts",
|
|
"./types": "./src/types.ts",
|
|
"./diagnostics": "./src/diagnostics.ts",
|
|
"./spec": "./src/spec.ts",
|
|
"./formatter": "./src/formatter.ts"
|
|
}
|
|
}
|