ballercat/walt

Type declarations for walt-loader.

Open

#129 aperta il 25 lug 2018

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (155 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (4637 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor