ballercat/walt

Type declarations for walt-loader.

Open

#129 aberto em 25 de jul. de 2018

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (155 forks)batch import
good first issuehelp wanted

Métricas do repositório

Stars
 (4.637 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador