commit d7513092df1909f407bf4c25c3d2c14ae946d718 Author: Lauchmelder Date: Thu Nov 25 20:56:15 2021 +0100 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbe9c82 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/ \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..e7e28ee --- /dev/null +++ b/index.js @@ -0,0 +1,4 @@ +function sum(a, b) { + return a + b; +} +console.log(sum(4, 5)); diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..d571227 --- /dev/null +++ b/index.ts @@ -0,0 +1,6 @@ +function sum(a: number, b: number) +{ + return a + b; +} + +console.log(sum(4, 5)); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..58e02d8 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "test", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..c14023d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs" + } +} \ No newline at end of file