Skip to content

Using hooks with TypescriptΒ #1067

@fermaud

Description

@fermaud

Describe the feature

Hi βœ‹πŸΌ
I'm trying to use saved(model, record) hook (docs) with TS, of which type are the args model, record ?
If I set saved(model: Post) I got the following error:
Class static side 'typeof Post' incrorrectly extends base class static side 'typeof Post

Thanks for your help

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions