mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-25 11:11:46 +08:00
Added generic type as return type since shift() and pop() return an item from the array
This commit is contained in:
Vendored
+2
-2
@@ -27,9 +27,9 @@ interface KnockoutObservableArrayFunctions<T> extends KnockoutObservableFunction
|
||||
slice(start: number, end?: number): T[];
|
||||
splice(start: number): T[];
|
||||
splice(start: number, deleteCount: number, ...items: T[]): T[];
|
||||
pop();
|
||||
pop(): T;
|
||||
push(...items: T[]): void;
|
||||
shift();
|
||||
shift(): T;
|
||||
unshift(...items: T[]): number;
|
||||
reverse(): T[];
|
||||
sort(): void;
|
||||
|
||||
Reference in New Issue
Block a user