File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/node_modules/@stdlib/wasm/memory/docs/types Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
19
19
// TypeScript Version: 4.1
20
20
21
+ import { Memory as MemoryInterface } from '@stdlib/wasm/types' ;
22
+
21
23
/**
22
24
* WebAssembly memory descriptor object.
23
25
*/
@@ -41,7 +43,7 @@ interface Descriptor {
41
43
/**
42
44
* Class for creating WebAssembly memory instances.
43
45
*/
44
- declare class Memory {
46
+ declare class Memory implements MemoryInterface {
45
47
/**
46
48
* WebAssembly memory instance constructor.
47
49
*
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import Memory = require( './index' );
28
28
new Memory ( { 'initial' : 0 } ) ; // $ExpectType Memory
29
29
}
30
30
31
- // The constructor function has to be invoked with `new`...
31
+ // The constructor function has to be invoked with the `new` operator ...
32
32
{
33
33
Memory ( { 'initial' : 0 } ) ; // $ExpectError
34
34
}
You can’t perform that action at this time.
0 commit comments