From d7513092df1909f407bf4c25c3d2c14ae946d718 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Thu, 25 Nov 2021 20:56:15 +0100 Subject: [PATCH] initial commit --- .gitignore | 1 + index.js | 4 ++++ index.ts | 6 ++++++ package.json | 11 +++++++++++ tsconfig.json | 6 ++++++ 5 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 index.js create mode 100644 index.ts create mode 100644 package.json create mode 100644 tsconfig.json 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