Skip to content

Commit dcc1476

Browse files
committed
refactor: define return types
1 parent 154b718 commit dcc1476

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/service-module/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Service } from '@feathersjs/feathers'
2+
13
/*
24
eslint
35
@typescript-eslint/no-explicit-any: 0
@@ -29,7 +31,7 @@ export interface HandleEvents {
2931

3032
export interface MakeServicePluginOptions {
3133
Model: any
32-
service: any
34+
service: Service<any>
3335

3436
idField?: string
3537
tempIdField?: string
@@ -50,7 +52,7 @@ export interface MakeServicePluginOptions {
5052
paramsForServer?: string[]
5153

5254
instanceDefaults?: () => {}
53-
setupInstance?: (data, { models, store }) => {}
55+
setupInstance?: (data: any, { models, store }) => {}
5456
handleEvents?: HandleEvents
5557
state?: {}
5658
getters?: {}

0 commit comments

Comments
 (0)