Skip to content

Commit 6054e1a

Browse files
committed
clean up imports
1 parent 227d4e8 commit 6054e1a

File tree

5 files changed

+5
-14
lines changed

5 files changed

+5
-14
lines changed

src/service-module/make-base-model.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ import { EventEmitter } from 'events'
2222
import { ModelSetupContext } from './types'
2323
import { Store } from 'vuex'
2424

25-
// A hack to prevent error with this.constructor.preferUpdate
26-
interface Function {
27-
preferUpdate: boolean
28-
}
29-
30-
interface ChildClassOptions {
31-
merge?: boolean
32-
}
33-
3425
const defaultOptions = {
3526
clone: false,
3627
commit: true,

src/service-module/service-module.state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ eslint
66

77
import _omit from 'lodash/omit'
88

9-
import { MakeServicePluginOptions, AnyData, Model } from './types'
9+
import { MakeServicePluginOptions, Model } from './types'
1010

1111
export interface ServiceStateExclusiveDefaults {
1212
ids: string[]

src/service-module/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Service } from '@feathersjs/feathers'
1+
import { Service, Id } from '@feathersjs/feathers'
22
import { Params, Paginated } from '../utils'
33
import { EventEmitter } from 'events'
44
import { Store } from 'vuex'
55

6-
export type Id = number | string
6+
export { Id } from '@feathersjs/feathers'
77

88
/*
99
eslint

src/useFind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '@vue/composition-api'
1313
import debounce from 'lodash/debounce'
1414
import { getItemsFromQueryInfo, getQueryInfo, Params, Paginated } from './utils'
15-
import { AnyData, ModelStatic, Model } from './service-module/types'
15+
import { ModelStatic, Model } from './service-module/types'
1616

1717
interface UseFindOptions {
1818
model: ModelStatic

src/useGet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Ref
1212
} from '@vue/composition-api'
1313
import { Params } from './utils'
14-
import { AnyData, ModelStatic, Model, Id } from './service-module/types'
14+
import { ModelStatic, Model, Id } from './service-module/types'
1515

1616
interface UseGetOptions {
1717
model: ModelStatic

0 commit comments

Comments
 (0)