Bump deps (#769)

This commit is contained in:
Jaco
2023-08-18 10:22:13 +03:00
committed by GitHub
parent d2a28ca315
commit 666fc8f702
25 changed files with 1470 additions and 1963 deletions
@@ -3,7 +3,7 @@
// Copyright 2016 Dan Finlay
export function container (diameter: number, background = 'white', className = '', _style: { [index: string]: string } = {}): HTMLElement {
export function container (diameter: number, background = 'white', className = '', _style: Record<string, string> = {}): HTMLElement {
const element = document.createElement('div');
const style = Object.assign({
background,
@@ -12,7 +12,7 @@ import { container as newContainer } from './container.js';
import { SHAPE_COUNT } from './defaults.js';
import { seeder as newSeeder } from './seeder.js';
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: { [index: string]: string }): HTMLElement {
export function beachballIcon (seed: string | Uint8Array, { size = 256 }: Options, className = '', style?: Record<string, string>): HTMLElement {
const seeder = newSeeder(seed);
const colorGen = colors(seeder);
const outer = newContainer(size, 'white', className, style);
@@ -3,6 +3,4 @@
export type Seeder = () => number;
export interface ColorGen {
(alpha?: number): string;
}
export type ColorGen = (alpha?: number) => string;