| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| @typespec_tspd@0.78.0 source code.tar.gz | 2026-11-11 | 21.1 MB | |
| @typespec_tspd@0.78.0 source code.zip | 2026-11-11 | 34.0 MB | |
| README.md | 2026-11-11 | 1.3 kB | |
| Totals: 3 Items | 55.1 MB | 0 | |
Features
- #12461 Add
typeref(Type)for referencing types from metadata values. Enable thetyperefcompiler feature in the calling project or library'stspconfig.yaml. Its result has typeTypeRef<T>, whereTis the referenced type. UseTypeRefto accept any type reference, orTypeRef<T>to constrain its target. JavaScript implementations and generated signatures useTypeRefValuefrom@typespec/compiler, whosetargetis the referenced compiler type. Type references are compilation metadata and cannot be represented as JSON values.
typespec
model Item { id: string; }
model Registration { name: string; type: TypeRef; }
const entry: Registration = #{ name: "item", type: typeref(Item) };
Bug Fixes
- #12225 Preserve source model and property documentation in generated extern signatures.
- #12435 Mark generated Typekit reference pages as JavaScript APIs so scoped website search includes them in
api:searches instead of default documentation searches. - #12169 Render line breaks in wrapped typekit documentation as whitespace instead of leaking TSDoc node names.