mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
10 lines
280 B
TypeScript
10 lines
280 B
TypeScript
import { superDecompress } from './superDecompress';
|
|
|
|
export async function fetchBkonLz4<Type>(url: string) {
|
|
return await fetch(url, {
|
|
cache: 'no-cache',
|
|
}).then(async (response) => {
|
|
return superDecompress(Buffer.from(await response.arrayBuffer())) as Type;
|
|
});
|
|
}
|