We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Encore doesn't seem to be able to parse the type Optional in the sequelize package. Models created by sequelize-auto often use this type.
The Object type looks like this: export type Optional<T,K> = Omit<T, K> & Partial<Pick<T, K>>
export type Optional<T,K> = Omit<T, K> & Partial<Pick<T, K>>
❌ Building Encore application graph... Failed: parse error ⠚ Analyzing service topology... error: object not found: Optional --> [my-file-path]:2:28 | 2 | import { DataTypes, Model, Optional } from 'sequelize'
Posted this in the discord but posting here for continuity.
The text was updated successfully, but these errors were encountered:
Are you sure that's the definition? TypeScript doesn't like that. See https://www.typescriptlang.org/play/?ts=5.7.2#code/KYDwDg9gTgLgBDAnmYcDyYYEsIDsCGANgDwAqANANIB8cAvOgLZYxnlw1wBkcACvrCxFivLAGMA1mw7VqAbgBQQA
Sorry, something went wrong.
Yes positive. You can see the implementation here: https://github.com/sequelize/sequelize/blob/fce5ad34fb70dc7fb12876d10213cf4ed51c7b96/src/index.d.ts#L25
Thanks, that works :) will have a look at fixing this.
You're amazing, thank you.
No branches or pull requests
Encore doesn't seem to be able to parse the type Optional in the sequelize package. Models created by sequelize-auto often use this type.
The Object type looks like this:
export type Optional<T,K> = Omit<T, K> & Partial<Pick<T, K>>
Posted this in the discord but posting here for continuity.
The text was updated successfully, but these errors were encountered: