Skip to content

Consider migrating away from tsd to support TS Native #15696

@chriskrycho

Description

@chriskrycho

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Today, Mongoose’s type tests use tsd, which uses a fork of the TS compiler to validate the types. This makes it impossible to execute the test suite against the TypeScript native rewrite, and it is unclear what the future of tsd will be. Switching to use a type assertion library like expect-type (or any other that purely works with types, rather than forking the compiler) would make it possible to begin regularly testing Mongoose’s types against tsgo.

That in turn will allow early adopters (like Vanta, where I am actively trying to get us to be able to use tsgo!) to flush out issues and help get them fixes in the appropriate place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions