Skip to content

Commit

Permalink
fix(typescript): Fix type definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdesmares committed Jun 4, 2024
1 parent e95be87 commit 9276636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
GraphQLSchemaConfig,
} from 'graphql'
import { PubSub } from 'graphql-subscriptions'
import { FindOptions, ModelStatic } from 'sequelize/types'

import { FindOptions, ModelStatic } from 'sequelize'
import {
GlobalPreCallback,
GraphqlSchemaDeclarationType,
InAndOutTypes,
ModelDeclarationType,
MutationList,
OutputTypes,
SequelizeModel,
SequelizeModels,
TInfo,
} from './types/types'
Expand Down Expand Up @@ -65,7 +65,7 @@ export function generateCount(
export function removeUnusedAttributes(
findOptions: FindOptions,
info: TInfo,
currentModel: SequelizeModel<any>,
currentModel: ModelStatic<any>,
models: SequelizeModels,
keep: Array<string>
): FindOptions
Expand Down
2 changes: 1 addition & 1 deletion src/tests/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ graphqlSchemaDeclaration.user = {
return deletedEntity
},
},
} as ModelDeclarationType<typeof models.user>
} as ModelDeclarationType<User>

graphqlSchemaDeclaration.company = {
model: models.company,
Expand Down

0 comments on commit 9276636

Please sign in to comment.