From 905305ef0d3b4a7a6a9fec0d844962af499dd88c Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Wed, 11 Dec 2024 11:20:42 +0100 Subject: [PATCH] litt ts --- package-lock.json | 8 ++++---- package.json | 2 +- ts/hello-world/index.js | 2 ++ ts/hello-world/index.ts | 2 ++ ts/test.ts | 1 + 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 ts/hello-world/index.js create mode 100644 ts/hello-world/index.ts diff --git a/package-lock.json b/package-lock.json index 1b31365..1e51a8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@types/prompt": "^1.1.8", - "typescript": "^5.6.3" + "typescript": "^5.7.2" } }, "node_modules/@colors/colors": { @@ -238,9 +238,9 @@ } }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 536eb73..5024b6b 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,6 @@ }, "devDependencies": { "@types/prompt": "^1.1.8", - "typescript": "^5.6.3" + "typescript": "^5.7.2" } } diff --git a/ts/hello-world/index.js b/ts/hello-world/index.js new file mode 100644 index 0000000..5652a54 --- /dev/null +++ b/ts/hello-world/index.js @@ -0,0 +1,2 @@ +console.log("Hello World!"); +var age = 51; diff --git a/ts/hello-world/index.ts b/ts/hello-world/index.ts new file mode 100644 index 0000000..08e118d --- /dev/null +++ b/ts/hello-world/index.ts @@ -0,0 +1,2 @@ +console.log("Hello World!") +let age: number = 51; \ No newline at end of file diff --git a/ts/test.ts b/ts/test.ts index fef982f..cf218a8 100644 --- a/ts/test.ts +++ b/ts/test.ts @@ -1 +1,2 @@ let firstName: string = "Dylan"; +