1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
=== tests/cases/compiler/arrayTypeInSignatureOfInterfaceAndClass.ts ===
declare module WinJS {
>WinJS : typeof WinJS
class Promise<T> {
>Promise : Promise<T>
then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>;
>then : <U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void) => Promise<U>
>success : (value: T) => Promise<U>
>value : T
>error : (error: any) => Promise<U>
>error : any
>progress : (progress: any) => void
>progress : any
}
}
declare module Data {
>Data : typeof Data
export interface IListItem<T> {
itemIndex: number;
>itemIndex : number
key: any;
>key : any
data: T;
>data : T
group: any;
>group : any
isHeader: boolean;
>isHeader : boolean
cached: boolean;
>cached : boolean
isNonSourceData: boolean;
>isNonSourceData : boolean
preventAugmentation: boolean;
>preventAugmentation : boolean
}
export interface IVirtualList<T> {
//removeIndices: WinJS.Promise<IListItem<T>[]>;
removeIndices(indices: number[], options?: any): WinJS.Promise<IListItem<T>[]>;
>removeIndices : (indices: number[], options?: any) => WinJS.Promise<IListItem<T>[]>
>indices : number[]
>options : any
>WinJS : any
}
export class VirtualList<T> implements IVirtualList<T> {
>VirtualList : VirtualList<T>
//removeIndices: WinJS.Promise<IListItem<T>[]>;
public removeIndices(indices: number[], options?: any): WinJS.Promise<IListItem<T>[]>;
>removeIndices : (indices: number[], options?: any) => WinJS.Promise<IListItem<T>[]>
>indices : number[]
>options : any
>WinJS : any
}
}
|