forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
583 B
20 lines
583 B
export declare class Queue { |
|
capacity: number; |
|
array: any[]; |
|
constructor(capacity: number); |
|
contains(v: any): boolean; |
|
indexOf(v: any): boolean; |
|
getElementByIndex(index: number): any; |
|
push(v: any): void; |
|
pop(): void; |
|
shift(): void; |
|
unshift(v: any): void; |
|
remove(v: any): void; |
|
splice(...args: any[]): void; |
|
slice(start?: number, end?: number): void; |
|
size(): number; |
|
each(fn: (i?: number, item?: any, array?: any[]) => any, scope: object): void; |
|
toArray(): any[]; |
|
fromArray(array: any[]): void; |
|
clear(): void; |
|
}
|
|
|