1
0
Fork 0
mirror of https://github.com/archtechx/todo-system.git synced 2025-12-12 00:54:03 +00:00
todo-system/samples/1.ts
2023-11-21 23:24:17 +01:00

35 lines
716 B
TypeScript

function add(foo: any, bar: any): any { // todo@types
return foo + bar;
}
function subtract(foo: any, bar: any): any { // todo@types add types
return foo - bar;
}
function hello() {
// console.log("Hello world!"); // todo000
}
function hello_world() {
// todo00 add return typehint
console.log("Hello world!");
}
function greet(name: any) {
// todo0 add name typehint
console.log(`Hello ${name}`);
}
function greet2(name: string) { // todo1 add return typehint
console.log(`Hello ${name}`);
}
function echo(str: string) { // todo2 add return typehint
console.log(str);
}
// console.log('foo'); // todo
// todo generic todo 2
// TODO: generic todo 3
// todo11 invalid todo