diff --git a/app/api/db/appState.ts b/app/api/db/appState.ts index cd1ba7e..afb7817 100644 --- a/app/api/db/appState.ts +++ b/app/api/db/appState.ts @@ -85,8 +85,8 @@ const { useStore: modalState, setStore: setModalState } = createStore< bodyText: string confirmColor: ButtonProps['color'] confirmText: string - onConfirm: Function - onCancel: Function + onConfirm: () => void + onCancel: () => void }> >({ openState: false diff --git a/app/api/mp3Converter.ts b/app/api/mp3Converter.ts index aec7873..d5433b6 100644 --- a/app/api/mp3Converter.ts +++ b/app/api/mp3Converter.ts @@ -1,8 +1,12 @@ +type SuccessCallback = (mp3Blob: Blob) => Promise +type ProgressCallback = (progress: number) => void +type ErrorCallback = (error: string) => void + const convertWav = ( blob: Blob, - onSuccess: Function, - onProgress: Function, - onError: Function + onSuccess: SuccessCallback, + onProgress: ProgressCallback, + onError: ErrorCallback ) => { const mp3Worker = new Worker('/workers/mp3encoder.js') diff --git a/package.json b/package.json index 9672dcb..118abcd 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "web-audio-beat-detector": "~8.1.37" }, "devDependencies": { - "@biomejs/biome": "1.1.2", + "@biomejs/biome": "1.2.2", "@cloudflare/workers-types": "^4.20230821.0", "@iconify-icon/react": "^1.0.7", "@remix-run/dev": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index c4cfee2..267bdf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -454,16 +454,16 @@ __metadata: languageName: node linkType: hard -"@biomejs/biome@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/biome@npm:1.1.2" - dependencies: - "@biomejs/cli-darwin-arm64": 1.1.2 - "@biomejs/cli-darwin-x64": 1.1.2 - "@biomejs/cli-linux-arm64": 1.1.2 - "@biomejs/cli-linux-x64": 1.1.2 - "@biomejs/cli-win32-arm64": 1.1.2 - "@biomejs/cli-win32-x64": 1.1.2 +"@biomejs/biome@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/biome@npm:1.2.2" + dependencies: + "@biomejs/cli-darwin-arm64": 1.2.2 + "@biomejs/cli-darwin-x64": 1.2.2 + "@biomejs/cli-linux-arm64": 1.2.2 + "@biomejs/cli-linux-x64": 1.2.2 + "@biomejs/cli-win32-arm64": 1.2.2 + "@biomejs/cli-win32-x64": 1.2.2 dependenciesMeta: "@biomejs/cli-darwin-arm64": optional: true @@ -479,48 +479,48 @@ __metadata: optional: true bin: biome: bin/biome - checksum: d9c38a3f4b2962330e6f9bb46ea161480947e6aa8545e3bdde157182b4b7901f4600209e69a58489ae76eb279a4152a78f4507d6045a0f9ec7acb828c875175c + checksum: 36dfcc756c53e22a5f6b5819ebb261b02acaa4df2832ef00e231bf73d4707121d0acdefa81f12523beb09a7b363676ca8fe719873932794d2e92130c3a41908c languageName: node linkType: hard -"@biomejs/cli-darwin-arm64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-darwin-arm64@npm:1.1.2" +"@biomejs/cli-darwin-arm64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-darwin-arm64@npm:1.2.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-darwin-x64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-darwin-x64@npm:1.1.2" +"@biomejs/cli-darwin-x64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-darwin-x64@npm:1.2.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-linux-arm64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-linux-arm64@npm:1.1.2" +"@biomejs/cli-linux-arm64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-linux-arm64@npm:1.2.2" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-linux-x64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-linux-x64@npm:1.1.2" +"@biomejs/cli-linux-x64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-linux-x64@npm:1.2.2" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@biomejs/cli-win32-arm64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-win32-arm64@npm:1.1.2" +"@biomejs/cli-win32-arm64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-win32-arm64@npm:1.2.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@biomejs/cli-win32-x64@npm:1.1.2": - version: 1.1.2 - resolution: "@biomejs/cli-win32-x64@npm:1.1.2" +"@biomejs/cli-win32-x64@npm:1.2.2": + version: 1.2.2 + resolution: "@biomejs/cli-win32-x64@npm:1.2.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5399,7 +5399,7 @@ isbot@latest: version: 0.0.0-use.local resolution: "mixpoint@workspace:." dependencies: - "@biomejs/biome": 1.1.2 + "@biomejs/biome": 1.2.2 "@cloudflare/workers-types": ^4.20230821.0 "@emotion/react": ~11.10.6 "@emotion/styled": ~11.10.6