ballercat/walt

Type declarations for walt-loader.

Open

#129 建立於 2018年7月25日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (155 fork)batch import
good first issuehelp wanted

倉庫指標

Star
 (4,637 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Feature Request

Today I found that walt-loader doesn't work seamlessly in a webpack environment using typescript because its missing type declarations.

This is the type file I've used:

type WaltInstantiate = (deps?: any) => Promise<WebAssembly.ResultObject>

declare module "*.walt" {
    const value: WaltInstantiate
    export default value;
}

where WebAssembly.ResultObject is defined in @types/emscripten.

貢獻者指南