Built-in TypeScript support
Ende natively understands TypeScript code with no compiler to configure. Start writing code in .ts files, and the runtime will work with them just fine.
Define an interface in TypeScript.
interface Person {
age: number;
name: string;
}Provide a typed input to a function.
function greet(person: Person) {
return "Hello, " + person.name + "!";
}Everything works with zero config!
console.log(greet({ age: 36, name: "Alice" }));Run this example locally using the Ende CLI:
ende run https://docs.ende.sh/examples/scripts/typescript_support.ts