diff --git a/extension/src/wasm.d.ts b/extension/src/wasm.d.ts index 5b2f5cb..a6c3818 100644 --- a/extension/src/wasm.d.ts +++ b/extension/src/wasm.d.ts @@ -15,7 +15,7 @@ export class EncryptedAttachment { export class TotpCode { readonly code: string; - readonly expires_at: number; + readonly expires_at: bigint; free(): void; } @@ -56,3 +56,6 @@ export function totp_compute(config_json: string, now_unix_seconds: bigint): Tot // Initializer (wasm-bindgen's default init function). export default function init(module_or_path?: unknown): Promise; + +// wasm-bindgen's sync init — Chrome MV3 service workers can't use dynamic import(). +export function initSync(args: { module: WebAssembly.Module }): void;