panderalabs / koa-pageable

Pagination framework for Koa (inspired by Spring Data)
https://panderalabs.github.io/koa-pageable/
ISC License
13 stars 0 forks source link

How to make this work with TypeScript? #3

Open demisx opened 6 years ago

demisx commented 6 years ago

Trying to import this module in Typescript:

import { Pageable, IndexedPage, paginate } from '@panderalabs/koa-pageable'

throws the following error:

Could not find a declaration file for module '@panderalabs/koa-pageable'. 

Where can I find the declaration file with types. The https://github.com/DefinitelyTyped/DefinitelyTyped doesn't appear to have it.

demisx commented 6 years ago

If you could please provide some tips on how to get type information for your module in TypeScript, that would be great. We don't use flow.

sioked commented 6 years ago

@demisx Thanks for the issue. We're working on adding typescript types alongside our flow types , so you should be able to import the types directly. We'll have a PR out soon for this addition.

tyteen4a03 commented 5 years ago

How can I install a version with TS support?