@@ -183,7 +183,7 @@ export interface FeathersApplication<ServiceTypes = any, AppSettings = any> {
183183 */
184184 use < L extends keyof ServiceTypes & string > (
185185 path : L ,
186- service : ( keyof any extends keyof ServiceTypes ? ServiceInterface < any > : ServiceTypes [ L ] ) | Application ,
186+ service : keyof any extends keyof ServiceTypes ? ServiceInterface < any > | Application : ServiceTypes [ L ] ,
187187 options ?: ServiceOptions
188188 ) : this;
189189
@@ -205,7 +205,7 @@ export interface FeathersApplication<ServiceTypes = any, AppSettings = any> {
205205 *
206206 * @param map The application hook settings.
207207 */
208- hooks ( map : HookOptions < Application < ServiceTypes , AppSettings > , any > ) : this;
208+ hooks ( map : HookOptions < this , any > ) : this;
209209}
210210
211211// This needs to be an interface instead of a type
@@ -309,7 +309,7 @@ export interface HookContext<A = Application, S = any> extends BaseHookContext<S
309309
310310// Legacy hook typings
311311export type LegacyHookFunction < A = Application , S = Service < any , any > > =
312- ( this : S , context : HookContext < A , S > ) => ( Promise < HookContext < A , S > | void > | HookContext < A , S > | void ) ;
312+ ( this : S , context : HookContext < A , S > ) => ( Promise < HookContext < Application , S > | void > | HookContext < Application , S > | void ) ;
313313
314314type LegacyHookMethodMap < A , S > =
315315 { [ L in keyof S ] ?: SelfOrArray < LegacyHookFunction < A , S > > ; } &
0 commit comments