22 lines
295 B
JavaScript
22 lines
295 B
JavaScript
//// [indexer.ts]
|
|
interface JQueryElement {
|
|
id:string;
|
|
}
|
|
|
|
interface JQuery {
|
|
[n:number]:JQueryElement;
|
|
}
|
|
|
|
var jq:JQuery={ 0: { id : "a" }, 1: { id : "b" } };
|
|
jq[0].id;
|
|
|
|
//// [indexer.js]
|
|
var jq = {
|
|
0: {
|
|
id: "a"
|
|
},
|
|
1: {
|
|
id: "b"
|
|
}
|
|
};
|
|
jq[0].id;
|