IssueRaiser

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

## 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.

Posted by andrehsu on Dec 29, 2020, 1:04 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

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

andrehsuDec 29, 2020, 1:04 AM

## 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.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue