Skip to content

Use TypeScript for the internal implementation and use JavaScript for the API wrapper. #2

@weidagang

Description

@weidagang

I'd like to make use of the static type system of TypeScript for internal implementation, but keep the API compatible with JavaScript. To be specific, write a callbackless-internal.ts, then compile it to callbackless-internal.js, keep both in the src directory. Make callbackless.js is a wrapper of the callbackless-internal.js, may add some precondition checks there.

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