Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
monooso committed Dec 9, 2023
1 parent 2337cf5 commit 52386e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/collections/miniavs/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion lib/collections/miniavs/hair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion lib/collections/miniavs/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 52386e1

Please sign in to comment.