-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
dove: KnexService customization - Typescript error #2918
Comments
You are correct, that did not work. The page at https://dove.feathersjs.com/guides/cli/service.class.html has been updated now with more complete examples that should work as expected. Note that the docs are for |
Hi @daffl There is another ts error:
|
Urgh, it turns out that those signatures weren't exported. This will be fixed via #2943 but for now it'll probably have to be |
Steps to reproduce
1- Generate an app using
npm create feathers@pre feathers-chat
with:Typescript, KoaJS, HTTP & Real time, yarn, TypeBox, PostgreSQL
2- Add a custom implementation to
Users
service (doc: https://dove.feathersjs.com/guides/cli/service.class.html#service-customization)Example:
Expected behavior
Custom
find
andcreate
methods should override KnexService's methods with no errors.Actual behavior
Typescript error:
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: v16.18.1
Operating System: MacOS 11.5
Browser Version: N/A
React Native Version: N/A
Module Loader:
The text was updated successfully, but these errors were encountered: