Skip to content

Commit 806cdec

Browse files
committed
format
1 parent f70236a commit 806cdec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/hub/src/vendor/hash-wasm/sha256-wrapper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import WasmModule from "./sha256";
33
const BUFFER_MAX_SIZE = 8 * 1024 * 1024;
44

55
export async function createSHA256(isInsideWorker = false): Promise<{
6-
init(): void,
7-
update(data: Uint8Array): void,
8-
digest(method: "hex"): string,
6+
init(): void;
7+
update(data: Uint8Array): void;
8+
digest(method: "hex"): string;
99
}> {
1010
const wasm: Awaited<ReturnType<typeof WasmModule>> = isInsideWorker
1111
? // @ts-expect-error WasmModule will be populated inside self object
1212
await self["WasmModule"]()
1313
: await WasmModule();
14-
const heap = wasm.HEAPU8.subarray(wasm._GetBufferPtr());
14+
const heap = wasm.HEAPU8.subarray(wasm._GetBufferPtr());
1515
return {
1616
init() {
1717
wasm._Hash_Init(256);

0 commit comments

Comments
 (0)