TypeSpec
1 program
Added 2026-02-13T14:38:48Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: TYPESPEC, Cadl
Provenance: commit 1a5b40e451 · authored 2026-02-13T15:39:45+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/typespecExtensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.tsp | linguist | primary | 307.4K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Pet Store API
Provenance: commit 1a5b40e451 · authored 2026-02-13T15:39:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
import "@typespec/http";
import "@typespec/rest";
using TypeSpec.Http;
using TypeSpec.Rest;
@service({
title: "Pet Store API",
})
namespace PetStore;
model Pet {
id: int32;
name: string;
age: int32;
species: "dog" | "cat" | "bird";
}
model Error {
code: int32;
message: string;
}
@route("/pets")
interface Pets {
@get list(): Pet[];
@post create(@body pet: Pet): Pet | Error;
@get read(@path petId: int32): Pet | Error;
}
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.tsp/0 | .tsp | predicates | [{"kind": "any", "regexes": ["^(import|using|namespace|interface|op|model|scalar|alias|union|enum)\\s"]}] |