Skip to content

Large schemas generate huge index.d.ts causing slow autocomplete and type-checking in your editor #4807

@andrehsu

Description

@andrehsu

Problem

Whenever I generate the prisma client again after modifying the schema, it takes a while for WebStorm (an IntelliJ-based IDE) to reflect the changes in static analysis. While I haven't done any benchmarking to confirm this is the case, I think it is because
of the thousand lines long index.d.ts. Seeing as the draw of Prisma is that it is typed, I feel like an improvement in the static analysis performance would be relevant to the project.

Suggested solution

Split the index.d.ts file into separate type-def files for potentially faster static analysis.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions