diff options
| author | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-31 13:08:08 -0500 |
|---|---|---|
| committer | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-31 13:08:08 -0500 |
| commit | a80df869a92c330fbad9695057720b11a18af901 (patch) | |
| tree | 5307272821cb3adc3f0348413a3b904290890044 /crates/chat-crypto/browser/protocol.d.ts | |
| parent | 9139398d465f5899cc31bc4cdd54daa7392ca550 (diff) | |
Forbid Rust lints and enforce strict typed TypeScript linting
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>; |
