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
It would be nice to have better typescript support. Like I have defined attributes in model, but the IDE will not detect that the property is that type of model.
The text was updated successfully, but these errors were encountered:
Hi! That's because responses might be wrapped in data, so we don't know if the type is Event[] or WrappedResponse<Event[]>. Try using $get() to automatically unwrap it.
newEvent().$get().then(response=>{response// Now the response type will be Event[]})
It would be nice to have better typescript support. Like I have defined attributes in model, but the IDE will not detect that the property is that type of model.
The text was updated successfully, but these errors were encountered: