You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importdbfrom'@adonisjs/lucid/services/db'importtype{ApplicationService}from'@adonisjs/core/types'exportdefaultclassAppProvider{constructor(protectedapp: ApplicationService){}asyncready(){db.SimplePaginator.namingStrategy={paginationMetaKeys(){return{// ... same as above}},}}}
Throws immediate TS error, saying that SimplePaginator does not exist on db.
Package version
21.6.0
Describe the bug
Examples from Lucid docs are misleading, saying that you can globally modify paginator meta keys
https://lucid.adonisjs.com/docs/pagination#serializing-to-json
https://lucid.adonisjs.com/docs/model-naming-strategy#paginationmetakeys
Registering custom service provider with code:
Throws immediate TS error, saying that
SimplePaginator
does not exist ondb
.Relates to #1046
Lucid version:
21.6.0
Core version:
6.17.1
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: