2014-07-13 01:04:16 +02:00
|
|
|
//// [targetTypeObjectLiteralToAny.ts]
|
|
|
|
function suggest(){
|
|
|
|
var TypeScriptKeywords:string[];
|
|
|
|
var result:any;
|
|
|
|
|
|
|
|
TypeScriptKeywords.forEach(function(keyword) {
|
|
|
|
result.push({text:keyword, type:"keyword"}); // this should not cause a crash - push should be typed to any
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [targetTypeObjectLiteralToAny.js]
|
|
|
|
function suggest() {
|
|
|
|
var TypeScriptKeywords;
|
|
|
|
var result;
|
|
|
|
TypeScriptKeywords.forEach(function (keyword) {
|
2015-03-26 21:46:35 +01:00
|
|
|
result.push({ text: keyword, type: "keyword" }); // this should not cause a crash - push should be typed to any
|
2014-07-13 01:04:16 +02:00
|
|
|
});
|
|
|
|
}
|