fix: patch flexsearch type definitions

[deploy]
This commit is contained in:
2023-07-28 19:56:00 +02:00
parent e508d1312e
commit 73c71836dc
6 changed files with 33 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
/**
* Compress JSON.stringify with gzip
*/
export async function stringifyCompressed(chords: any): Promise<Blob> {
export async function stringifyCompressed<T>(chords: T): Promise<Blob> {
const stream = new Blob([JSON.stringify(chords)]).stream().pipeThrough(new CompressionStream("gzip"))
return await new Response(stream).blob()
}