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