mirror of
https://github.com/Wessel/pikmin.git
synced 2026-06-06 02:55:47 +02:00
Update typings (again and again...)
This commit is contained in:
9
index.d.ts
vendored
9
index.d.ts
vendored
@@ -13,8 +13,7 @@ declare namespace Pikmin {
|
|||||||
public name: string;
|
public name: string;
|
||||||
public baseFormat: string;
|
public baseFormat: string;
|
||||||
public transports: Pikmin.Transport[];
|
public transports: Pikmin.Transport[];
|
||||||
|
public log(type: string, msg: string | object, ...options: any[]): void;
|
||||||
public log(type: string, msg: string, ...options): void;
|
|
||||||
public addTransport(transport: Pikmin.Transport, options?: { autogen: boolean }): void;
|
public addTransport(transport: Pikmin.Transport, options?: { autogen: boolean }): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,8 +105,8 @@ declare namespace Pikmin {
|
|||||||
blink: Color;
|
blink: Color;
|
||||||
inverse: Color;
|
inverse: Color;
|
||||||
strikethrough: Color;
|
strikethrough: Color;
|
||||||
hex: (rgb: string) => string;
|
hex: (rgb: string, content: string) => string;
|
||||||
rgb: (values: [number, number, number]) => string;
|
rgb: (values: [number, number, number], content: string) => string;
|
||||||
strip: (val: string) => string;
|
strip: (val: string) => string;
|
||||||
supported: boolean;
|
supported: boolean;
|
||||||
}
|
}
|
||||||
@@ -132,7 +131,7 @@ declare namespace Pikmin {
|
|||||||
destroy(): this;
|
destroy(): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Color = (s: string) => string;
|
export type Color = (value: string | object) => string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export = Pikmin;
|
export = Pikmin;
|
||||||
|
|||||||
Reference in New Issue
Block a user