-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Losing Type on applying pagination pipe #303
Comments
Hi, I guess the solution should just be to update the signature of the public transform<T = any>(collection: T[] | ReadonlyArray<T>, args: any): T[] {
// ..
} You could try manually editing the d.ts file in your node_modules to the above and see if that then fixes it for you. If so I could include the change in a new version. Alternatively if you'd like to have a go at submitting a pull request, please feel free. |
Hey man, i tried it and it work, but this code
|
Did the |
Yes man, sorry i put it back and everything works fine. |
=======
Angular version:
7.1.4
ngx-pagination version:
3.2.1
Description of issue:
I lose type when i put "| paginate" on ngFor, because the PaginationPipe is on any type.
I just wanna ask is there any other way to implement the pagination? its not really a problem at all but it kinda sucks that we gonna lose the type on the HTML
Thank you!
The text was updated successfully, but these errors were encountered: