Refine ts example

This commit is contained in:
Daniel Imms
2017-05-05 19:48:22 -07:00
parent 3e12dcd735
commit 999d5d9a0f

View File

@@ -1,3 +1,19 @@
// An exceptionally useful comment
function func(param: string): object {
var text = 'string';
for (var i = 0; i < param.length; i++) {
text += i;
}
var number = 0;
var templateLiterals = `a ${text} b ${1 + 2} c`;
return {
"text": text,
"boolean": false,
"number": 231
};
}
func('abc');
import { a } from 'some-file';
/**