You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make a simple belongsTo relationship on a model, I get an error that states Property 'belongsTo' does not exist on type 'Object | typeof Model'.
Introduction
When I make a simple
belongsTo
relationship on a model, I get an error that statesProperty 'belongsTo' does not exist on type 'Object | typeof Model'.
Steps to reproduce issue
Example:
Expected behaviour
I expect to be able to use
belongsTo
without typescript errorsActual behaviour
When defining a model in a typescript file,
belongsTo
gets a ts(2339) error:Property 'belongsTo' does not exist on type 'Object | typeof Model'.
The text was updated successfully, but these errors were encountered: