32 lines
537 B
TypeScript
32 lines
537 B
TypeScript
//// [arrayLiteralComments.ts]
|
|
var testArrayWithFunc = [
|
|
// Function comment
|
|
function() {
|
|
let x = 1;
|
|
},
|
|
// String comment
|
|
'1',
|
|
// Numeric comment
|
|
2,
|
|
// Object comment
|
|
{ a: 1 },
|
|
// Array comment
|
|
[1, 2, 3]
|
|
]
|
|
|
|
//// [arrayLiteralComments.js]
|
|
var testArrayWithFunc = [
|
|
// Function comment
|
|
function () {
|
|
var x = 1;
|
|
},
|
|
// String comment
|
|
'1',
|
|
// Numeric comment
|
|
2,
|
|
// Object comment
|
|
{ a: 1 },
|
|
// Array comment
|
|
[1, 2, 3]
|
|
];
|