Files
blitzkit/src/core/blitzkrieg/fetchBkonLz4.ts
T
2024-02-05 13:33:23 -06:00

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;
});
}