use Record as proposed in #598

This commit is contained in:
dcode 2019-05-25 14:56:09 +02:00
parent d32391055d
commit a564c820fb

View File

@ -1,8 +1,7 @@
import "@types/webassembly-js-api";
/** WebAssembly imports with two levels of nesting. */
interface ImportsObject {
[key: string]: {},
interface ImportsObject extends Record<string, any> {
env?: {
memory?: WebAssembly.Memory,
table?: WebAssembly.Table,