Update request.ts wasm_response_send signature (#2122)

Update wasm_response_send function signature to match api by returning
bool instead of void (was causing assemblyscript example to break)
This commit is contained in:
John O'Connor 2023-04-12 01:50:11 -07:00 committed by GitHub
parent a2d4744a2b
commit 327b4a7f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import * as console from './console'
import * as timer from './timer'
@external("env", "wasm_response_send")
declare function wasm_response_send(buffer: ArrayBuffer, size: i32): void;
declare function wasm_response_send(buffer: ArrayBuffer, size: i32): bool;
@external("env", "wasm_register_resource")
declare function wasm_register_resource(url: ArrayBuffer): void;