Merge pull request #26542 from Austaras/master

fix blockies
This commit is contained in:
Nathan Shively-Sanders
2018-06-18 11:35:19 -07:00
committed by GitHub
2 changed files with 16 additions and 9 deletions

View File

@@ -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;
}
}

View File

@@ -1,7 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,