Skip to content

Commit

Permalink
fix: rm declare module Application
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Sep 22, 2023
1 parent 3b268f0 commit 0ba8d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/app/graph-populate.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ import serviceMixin from './graph-populate.service-mixin'
import type { Application } from '@feathersjs/feathers'
import type { InitOptions } from '../types'

declare module '@feathersjs/feathers' {
interface Application {
graphPopulate: GraphPopulateApplication
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function initApp(options?: InitOptions): (app: Application) => void {
return (app: Application): void => {
const graphPopulate = new GraphPopulateApplication(app)

app.graphPopulate = graphPopulate
;(app as any).graphPopulate = graphPopulate

app.mixins.push(serviceMixin)
}
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export { paramsFromClient } from './hooks/params-from-client.hook'
export { definePopulates } from './utils/define-populates'

export { initApp as default } from './app/graph-populate.app'
export { type GraphPopulateApplication } from './app/graph-populate.class'

export * from './types'

0 comments on commit 0ba8d8b

Please sign in to comment.