Fixed typescript definitions: ArrayUtils.rotateMatrix and ArrayUtils.numberArrayStep

This commit is contained in:
BaroqueEngine 2016-06-06 17:27:32 +09:00
parent a180882d27
commit 042fc28513
2 changed files with 4 additions and 4 deletions

View file

@ -196,11 +196,11 @@ declare module "phaser" {
static removeRandomItem<T>(objects: T[], startIndex?: number, length?: number): T;
static shuffle<T>(array: T[]): T[];
static transposeMatrix<T>(array: T[]): T;
static rotateMatrix(matrix: any, direction: number): any;
static rotateMatrix(matrix: any, direction: number | string): any;
static findClosest(value: number, arr: number[]): number;
static rotate(array: any[]): any;
static numberArray(start: number, end: number): number[];
static numberArrayStep(start: number, end: number, step?: number): number[];
static numberArrayStep(start: number, end?: number, step?: number): number[];
}

View file

@ -196,11 +196,11 @@ declare module "phaser" {
static removeRandomItem<T>(objects: T[], startIndex?: number, length?: number): T;
static shuffle<T>(array: T[]): T[];
static transposeMatrix<T>(array: T[]): T;
static rotateMatrix(matrix: any, direction: number): any;
static rotateMatrix(matrix: any, direction: number | string): any;
static findClosest(value: number, arr: number[]): number;
static rotate(array: any[]): any;
static numberArray(start: number, end: number): number[];
static numberArrayStep(start: number, end: number, step?: number): number[];
static numberArrayStep(start: number, end?: number, step?: number): number[];
}