prisma-korea / prisma-offset-pagination

Offset Pagination based on cursor system
46 stars 13 forks source link

No types or exported members found from package #5

Open renatoaraujoc opened 3 years ago

renatoaraujoc commented 3 years ago

Hello,

When trying to use your library, IntelliJ does not find any exported member, neither types or anything.

This is what I'm getting. Captura de Tela 2021-08-10 às 14 57 59

Any idea how to solve this?

Thank you!

buruss commented 2 years ago

I had same problem.

and managed to solve this by generating index.d.ts (type definition) file with tsc.

just open a terminal and change directory to this npm package folder.

and run this command

tsc --declaration

you can use patch-package npm package to auto patch this file later.