Move everything to root
This commit is contained in:
9
src/index.ts
Normal file
9
src/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import test from "./test";
|
||||
|
||||
export default function startTest() {
|
||||
let i: number = 0;
|
||||
setInterval(() => {
|
||||
i++;
|
||||
test(i);
|
||||
}, 1000);
|
||||
}
|
||||
3
src/test.ts
Normal file
3
src/test.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export default function test(i: number) {
|
||||
console.log(`Hello, World! (#${i})`);
|
||||
}
|
||||
Reference in New Issue
Block a user