Skip to content

Expose types so typescript users can use them #358

@linonetwo

Description

@linonetwo

type ArbitraryThreadType = FunctionThread<any, any> & ModuleThread<any>
type ExposedToThreadType<Exposed extends WorkerFunction | WorkerModule<any>> =

I need to write this:

private wikiWorkers: Record<string, ArbitraryThreadType> = {};

but Module '"threads"' has no exported member 'ArbitraryThreadType'.ts(2305)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions