Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type declarations for walt-loader. #129

Open
Chamberlain91 opened this issue Jul 25, 2018 · 2 comments
Open

Type declarations for walt-loader. #129

Chamberlain91 opened this issue Jul 25, 2018 · 2 comments

Comments

@Chamberlain91
Copy link

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.

@ballercat
Copy link
Owner

Other than the parts that overlap with JS I have next to zero knowledge of TypeScript. If you'd like to add some type definitions (or a types file? I don't know how that works), I would accept a PR!

@aman123424
Copy link

Other than the parts that overlap with JS I have next to zero knowledge of TypeScript. If you'd like to add some type definitions (or a types file? I don't know how that works), I would accept a PR!

Hey, Do you still need help with this issue, I would like to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants