mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
589 B
TypeScript
19 lines
589 B
TypeScript
const response: Response = new Response();
|
|
const promise: Promise<Response> = Promise.resolve(response);
|
|
|
|
// CompileStreaming - taking Response
|
|
// $ExpectType Promise<Module>
|
|
WebAssembly.compileStreaming(response);
|
|
|
|
// CompileStreaming - taking Promise<Response>
|
|
// $ExpectType Promise<Module>
|
|
WebAssembly.compileStreaming(promise);
|
|
|
|
// InstantiateStreaming - taking Response
|
|
// $ExpectType Promise<ResultObject>
|
|
WebAssembly.instantiateStreaming(response);
|
|
|
|
// InstantiateStreaming - taking Promise<Response>
|
|
// $ExpectType Promise<ResultObject>
|
|
WebAssembly.instantiateStreaming(promise);
|