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
In order to allow users to override it and get auto-completion for services injections, a global Services interface mapping to all services types could be useful.
It would give something like services.d.ts in the root of projects sources:
importtype{BaseServices}from'knifecycle';// For injector/instance etc...declare module 'knifecycle'{// Eventually override the process env type hereexportinterfaceServicesextendsServices{pg: PGService;log: LogService;// ...}
In order to allow users to override it and get auto-completion for services injections, a global Services interface mapping to all services types could be useful.
It would give something like
services.d.ts
in the root of projects sources:Maybe that using this could help: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
The text was updated successfully, but these errors were encountered: