mirror of
https://github.com/archtechx/todo-system.git
synced 2025-12-12 00:54:03 +00:00
markdown rendering logic
This commit is contained in:
parent
ff449718df
commit
da228dd8e4
2 changed files with 219 additions and 12 deletions
35
samples/1.ts
Normal file
35
samples/1.ts
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue