From 0e542c292a95e6d1029c2387b6e1558b5dbcc87f Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Tue, 2 Oct 2012 14:09:40 +0900 Subject: [PATCH] add TypeScript sample and update version --- Changes | 3 +++ quickrun.el | 2 +- sample/sample.ts | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sample/sample.ts diff --git a/Changes b/Changes index 7e4b0e7..3d7fe95 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for quickrun.el +Version 1.7.1 2012/10/02 syohex + - Support TypeScript + Version 1.7 2012/08/31 syohex Thanks to rolandwalker - add autoload pragma to interactive functions diff --git a/quickrun.el b/quickrun.el index e68a1dd..ace6e7b 100644 --- a/quickrun.el +++ b/quickrun.el @@ -4,7 +4,7 @@ ;; Author: Syohei YOSHIDA ;; URL: https://github.com/syohex/emacs-quickrun -;; Version: 1.7 +;; Version: 1.7.1 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by diff --git a/sample/sample.ts b/sample/sample.ts new file mode 100644 index 0000000..efdd5a8 --- /dev/null +++ b/sample/sample.ts @@ -0,0 +1,12 @@ +class Greeter { + greeting: string; + constructor (message: string) { + this.greeting = message; + } + greet() { + return "Hello " + this.greeting; + } +} + +var greeter = new Greeter("world"); +console.log(greeter.greet())