1
0
Fork 0
mirror of https://github.com/archtechx/todo-system.git synced 2025-12-12 09:04:03 +00:00

parsing logic

This commit is contained in:
Samuel Štancl 2023-11-21 20:40:38 +01:00
parent f83171e37d
commit ff449718df
3 changed files with 433 additions and 2 deletions

29
sample.ts Normal file
View file

@ -0,0 +1,29 @@
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);
}