diff options
Diffstat (limited to 'crates/chat-crypto/browser/protocol.d.ts')
| -rw-r--r-- | crates/chat-crypto/browser/protocol.d.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/chat-crypto/browser/protocol.d.ts b/crates/chat-crypto/browser/protocol.d.ts index 6803c4c..30b5bf8 100644 --- a/crates/chat-crypto/browser/protocol.d.ts +++ b/crates/chat-crypto/browser/protocol.d.ts @@ -49,9 +49,9 @@ declare namespace StackChat { interface WorkerRequest { bytes: ArrayBuffer; request: CryptoRequest } interface Execution { output: string; randomCalls: number; randomBytes: number } interface Wasi { - runCommand(bytes: ArrayBuffer, request: CryptoRequest): Promise<unknown>; - runProbe(bytes: ArrayBuffer): Promise<Execution>; + readonly runCommand: (bytes: ArrayBuffer, request: CryptoRequest) => Promise<unknown>; + readonly runProbe: (bytes: ArrayBuffer) => Promise<Execution>; } } -declare var stackChatWasi: Readonly<StackChat.Wasi>; +declare const stackChatWasi: Readonly<StackChat.Wasi>; |
