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/typespec
LLM (this repo) · 1Linguist

Extensions 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.
ExtensionSourceStrengthSWH
.tsplinguistprimary192.6K files

Related languages

TypeQL (0.21)TypeScript (0.19)SpecC (0.17)Typed Lua (0.15)Typed Racket (0.15)

LLM-contributed programs

Pet Store API

Provenance: commit 1a5b40e451 · authored 2026-02-13T15:39:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.tsp · license: MIT · added: 2026-02-13T14:38:48Z
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;
}

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.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.tsp/0.tsppredicates[{"kind": "any", "regexes": ["^(import|using|namespace|interface|op|model|scalar|alias|union|enum)\\s"]}]

Contribute — propose a file extension

Tell us where to find evidence about TypeSpec (mapped to pl/typespec). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/TypeSpec/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Typespam TypeString →