psibean / discord.js-pagination

A simple (or advanced - it's your choice) utility to paginate discord embeds. Configure, customise, and control!
MIT License
10 stars 8 forks source link

Can't import some class in TypeScript #13

Open ppodds opened 2 years ago

ppodds commented 2 years ago

Lack of typing declares cause this problem. It can be fixed by adding missing typing declares in index.d.ts.

tsc version: 4.5.4 package version: 4.0.5

psibean commented 2 years ago

Yep. This is a duplicate of issue #9, typings support is needed.

I've given it a shot, but I seem to encounter some unnecessary design complexity around the pageIdentifiers object typing and the collectorOptions typing as the filter changes depending on the paginator. And also on the users specific identifiers object.

I've been short on time to re-visit this, but also happy for others to give it a shot and PR.