Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,848 changes: 1,783 additions & 1,065 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/feathers/src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
ApplicationHookOptions
} from './declarations.js'
import { enableHooks } from './hooks.js'
import { Router } from './router.js'
import { Router, RouterInterface } from './router.js'
import { Channel } from './channel/base.js'
import { CombinedChannel } from './channel/combined.js'
import { channelServiceMixin, Event, Publisher, PUBLISHERS, ALL_EVENTS, CHANNELS } from './channel/mixin.js'
Expand All @@ -35,7 +35,7 @@ export class Feathers<Services, Settings>
settings: Settings = {} as Settings
mixins: ServiceMixin<Application<Services, Settings>>[] = [hookMixin, eventMixin]
version: string = version
routes: Router = new Router()
routes: RouterInterface = new Router()
_isSetup = false

protected registerHooks: (this: any, allHooks: any) => any
Expand Down
4 changes: 2 additions & 2 deletions packages/feathers/src/declarations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventEmitter } from 'events'
import type { Router } from './router.js'
import type { RouterInterface } from './router.js'
import { NextFunction, HookContext as BaseHookContext } from './hooks/index.js'

type SelfOrArray<S> = S | S[]
Expand Down Expand Up @@ -241,7 +241,7 @@ export interface FeathersApplication<Services = any, Settings = any> {
/**
* The application routing mechanism
*/
routes: Router<{
routes: RouterInterface<{
service: Service
params?: { [key: string]: any }
}>
Expand Down
1 change: 1 addition & 0 deletions packages/feathers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export * from './hooks.js'
export * from './declarations.js'
export * from './service.js'
export * from './debug.js'
export * from './router.js'
Loading
Loading