Skip to content

preRun type is incorrect #13

@jeswr

Description

@jeswr

This is likely to be an upsteam issue in @types/emscripten, but I do not have the time to investigate fully right now.

Currently the type signature of preRun is (() => void)[]. Instead it should be more like

type singlePreRunType = ((arg: SWIPLModule) => void) | (() => void);
type preRunType = singlePreRunType | singlePreRunType[] | undefined;

as can be seen in the usage in https://github.com/eyereasoner/eye-js/pull/79/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions