Return type for functions returning query observables #99
-
Hi there! First, thank you @NetanelBasal for creating this and making available the powers of Tanstack Query available to Angular developers! Question Our coding standards require explicit return types. Let's say I want to type this function
Given that Unfortunately, this gives the following typing error
Am I doing something wrong?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
@roel-de-jong-iqvia, i am also looking for return type since our coding standard is similar.
|
Beta Was this translation helpful? Give feedback.
-
Ah got it. This works.
|
Beta Was this translation helpful? Give feedback.
export type ObservableQueryResult<T> = Observable<QueryObserverResult<T>>;