mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
fix blockies
This commit is contained in:
Vendored
+12
-8
@@ -3,12 +3,16 @@
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface BlockiesIcon {
|
||||
toDataURL(): string;
|
||||
}
|
||||
interface BlockiesConfig {
|
||||
seed: string;
|
||||
}
|
||||
declare function blockies(config: BlockiesConfig): BlockiesIcon;
|
||||
|
||||
declare function blockies(config?: blockies.BlockiesConfig): HTMLCanvasElement;
|
||||
export = blockies;
|
||||
|
||||
declare namespace blockies {
|
||||
interface BlockiesConfig {
|
||||
size?: number;
|
||||
scale?: number;
|
||||
seed?: string;
|
||||
color?: string;
|
||||
bgcolor?: string;
|
||||
spotcolor?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user