Skip to content

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.ts(7009) #85

@trebeljahr

Description

@trebeljahr

Trying to use this in TS leads to the following type error:

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.ts(7009)

Looking at another packages types, they export a new mkAlea function type for the alea use in TS.

 export declare const mkAlea: (seed?: string) => AleaPRNG;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions