Skip to content

Allow testing another TypeScript version #47

@SamVerschueren

Description

@SamVerschueren

I recently thought about this, and not sure if this is something we want. But I can assume that some people want to know if the type definitions work for TypeScript >=3.1.0 for instance.

I think it would be possible if we dynamically installed TypeScript depending on engines.typescript or something in package.json.

One thing to figure out though is that we need two private methods from within TypeScript which aren't exposed. I worked around this by shipping TypeScript myself with two extra manually added lines. So if we want to do this, we need to find a way to dynamically add them. Don't think it's impossible, just makes it a bit harder.

Don't think it would be a good idea to ship this library with 10 TypeScript versions 😂.

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