diff --git a/lib/collections/miniavs/body.ts b/lib/collections/miniavs/body.ts index f8a1cc2..2fe2820 100644 --- a/lib/collections/miniavs/body.ts +++ b/lib/collections/miniavs/body.ts @@ -54,6 +54,6 @@ const shapes = [ */ export function generate(key: number): string { const color = colors[key % colors.length] as ColorMap; - const template = shapes[key % shapes.length] as Function; + const template = shapes[key % shapes.length] as (colors: ColorMap) => string; return template(color); } diff --git a/lib/collections/miniavs/hair.ts b/lib/collections/miniavs/hair.ts index 7701e3f..413bad9 100644 --- a/lib/collections/miniavs/hair.ts +++ b/lib/collections/miniavs/hair.ts @@ -61,6 +61,6 @@ const shapes = [ */ export function generate(key: number): string { const color = colors[key % colors.length] as string; - const template = shapes[key % shapes.length] as Function; + const template = shapes[key % shapes.length] as (color: string) => string; return template(color); } diff --git a/lib/collections/miniavs/head.ts b/lib/collections/miniavs/head.ts index f45744c..8a635d7 100644 --- a/lib/collections/miniavs/head.ts +++ b/lib/collections/miniavs/head.ts @@ -69,6 +69,6 @@ const shapes = [ */ export function generate(key: number): string { const color = colors[key % colors.length] as ColorMap; - const template = shapes[key % shapes.length] as Function; + const template = shapes[key % shapes.length] as (colors: ColorMap) => string; return template(color); }