Basic scripts implementation

This commit is contained in:
2017-06-19 03:59:59 +02:00
parent 12c8e7642d
commit 768b82b1ec
8 changed files with 20 additions and 8 deletions

5
scripts/hello.ts Normal file
View File

@ -0,0 +1,5 @@
export class Greeter {
greet(name: string) {
console.log("Hello, " + name)
}
}

View File

@ -1 +0,0 @@
console.log("Hello World")

4
scripts/main.ts Normal file
View File

@ -0,0 +1,4 @@
import {Greeter} from "scripts/hello"
var greeter = new Greeter()
greeter.greet("World")