Skip to content

sequelize-typescript 2.0.0-beta.0 + sequelize 6.3.4 associations bug #828

Closed
@oktapodia

Description

@oktapodia

Versions

  • sequelize: 6.3.4
  • sequelize-typescript: 2.0.0-beta.0
  • typescript: 3.9.7

I'm submitting a ...

[x] bug report
[ ] feature request

Actual behavior:

Using the relations does not seem to work with that version, getting the error on all relations

node_modules/sequelize-typescript/dist/model/shared/model-class-getter.d.ts:2:40
2 export declare type ModelClassGetter = (returns?: void) => typeof Model;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expected behavior:

The same code is perfectly working on the version 1~ and sequelize 5~

Steps to reproduce:

You can try with the https://github.com/RobinBuschmann/sequelize-typescript-example with configuring both versions

Related code:

insert short code snippets here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions