mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
8 lines
279 B
TypeScript
8 lines
279 B
TypeScript
import { superDecompress } from './superDecompress';
|
|
|
|
export async function fetchCdonLz4<Type>(url: string) {
|
|
return await fetch(url, { cache: 'no-store' })
|
|
.then((response) => response.arrayBuffer())
|
|
.then((buffer) => superDecompress<Type>(new Uint8Array(buffer)));
|
|
}
|