Skip to content

Adding Typescript #3

@mezozawahra

Description

@mezozawahra

This library doesn't have types which causes error Could not find a declaration file for module when used in typescript, do you have plans for adding it?
For my use case i can take Oops.js file and rewrite to .ts
If you are interested, I would be happy to rewrite the lib in TS and the bundler will create the types, and this will keep backward compatibility and no change needed in any dependent codebase.

But before that, I need to know if the Oops class attributes are private(i can leave them all as public) and what fields are readonly, and what is its constructor's options interface(I can deduce it from the constructor code but is there a specific interface in mind).
@jelveh

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