Refine ts example
This commit is contained in:
@@ -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';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user