Skip to content

Mongoose : "Variable requires type-hint or initialization" using schemaOptions #184

Description

@TheoSabattie

Hello',

Thanks for your project, you bring to us an usefull set of tools.

After updating to haxe 4, a lot of things seem to be broken. I resolved some of them but I didn't resolve the following error below:
"Variable requires type-hint or initialization"

That happened just by declaring a Model:

@:schemaOptions({autoIndex: true})
class Leaderboard extends Model<LeaderboardData>{}

Do you have any Idea?

Thanks in advance,

Théo Sabattié

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions