microsoft / TypeScriptlanguage / compiler
Java
Script,
Typed.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. Add types where they clarify intent; ship JavaScript everywhere.
type Agent = {
name: string;
tools: string[];
}
const scout: Agent = {
name: "Scout",
tools: ["search"]
}
name: string;
tools: string[];
}
const scout: Agent = {
name: "Scout",
tools: ["search"]
}
01 / SUPERSET
JavaScript, extended
Keep the language you know; add a type system.
02 / COMPILER
Clean output
Types disappear; standard JavaScript remains.
03 / INTENT
Contracts in code
Make assumptions visible before runtime.