[Feature] Add overloads in default templates for reportProgress/observe properties
See original GitHub issueExample:
public sendConfirmations(businessDate: string, confirmations?: Confirmation[], observe?: 'body', reportProgress?: boolean): Observable<SendConfirmationsResponse>;
public sendConfirmations(businessDate: string, confirmations?: Confirmation[[], observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<SendConfirmationsResponse>>;
public sendConfirmations(businessDate: string, confirmations?: Confirmation[[], observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<SendConfirmationsResponse>>;
public sendConfirmations(businessDate: string, confirmations?: Confirmation[[], observe: any = 'body', reportProgress: boolean = false): Observable<any> {
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Default Report Item Properties - GrapeCity
Report Item Templates. Report Item Templates are regular reports containing report items with properties set to the desired values. You can create a...
Read more >How can I distinguish overloads of templates with non-type ...
To order the overloads, the compiler transforms each one of them and performs template argument deduction to see if one is more specialized...
Read more >Overloaded properties and methods - Visual Basic
You create an overloaded member for a class by adding two or more properties or methods with the same name. Except for overloaded...
Read more >Overload resolution - cppreference.com
If a constructor template or conversion function template has a ... result of the conversion, is added to the set of candidate functions....
Read more >enable_if - 1.73.0 - Boost C++ Libraries
If this were an error, adding an unrelated function template (that was never ... a true condition argument should enable or disable the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Lonli-Lokli This works for me. resultFor(Body|Response|Events) gets their types correctly.
Really, reportProgress / observe are not currently handled by the generator. We always generate a parameters object, so we could add a second argument with options. The point is that this will be a significant amount of work, and I don’t currently have time for it. Will leave open.