We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5100ba4 commit f61f3aaCopy full SHA for f61f3aa
projects/angular-odata/src/lib/models/model.ts
@@ -852,13 +852,13 @@ export class ODataModel<T> {
852
}
853
854
855
- getAttribute<M extends ODataModel<keyof T>>(
+ getAttribute<M extends ODataModel<any>>(
856
name: keyof T,
857
): M | null;
858
- getAttribute<C extends ODataCollection<keyof T, ODataModel<keyof T>>>(
+ getAttribute<C extends ODataCollection<any, ODataModel<any>>>(
859
860
): C | null;
861
- getAttribute<P extends T[keyof T]>(
+ getAttribute<P>(
862
863
): (P extends (infer U)[] ? ODataCollection<U, ODataModel<U> & ModelInterface<U>> :
864
P extends object ? ODataModel<P> & ModelInterface<P> : P) | null;
0 commit comments