Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing type definition for creating GIN indexes #10811

Closed
kukoo1 opened this issue Apr 19, 2019 · 0 comments
Closed

missing type definition for creating GIN indexes #10811

kukoo1 opened this issue Apr 19, 2019 · 0 comments
Labels
type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.

Comments

@kukoo1
Copy link

kukoo1 commented Apr 19, 2019

What are you doing?

It's problem with typescript type definition.

There's neither "using" nor "operator" options in "ModelIndexesOptions" interface located in "types/lib/model.d.ts"

So it causes compilation error when designate indexes in model definition
example

{
            fields: ["firstName"],
            using: "gin",
            operator: "gin_trgm_ops",
}

There's no error using @types/sequelize

What do you expect to happen?

No error in typescript compilation

Dialect: postgres
Dialect version: XXX
Database version: PostgreSQL 10.7
Sequelize version: 5.7.0
Tested with latest release: Yes 5.7.0

@SimonSchick SimonSchick added the type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. label Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.
Projects
None yet
Development

No branches or pull requests

3 participants