77 RelativeBindingPath ,
88} from "./typing" ;
99
10- export class TypedContext < Data extends object , Root extends AbsoluteBindingPath < Data > > extends Context {
10+ export class TypedJSONContext < Data extends object , Root extends AbsoluteBindingPath < Data > > extends Context {
1111 constructor ( oModel : TypedJSONModel < Data > , sPath : Root ) {
1212 super ( oModel , sPath ) ;
1313 }
@@ -35,8 +35,8 @@ export class TypedJSONModel<Data extends object> extends JSONModel {
3535 // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
3636 fnCallBack ?: Function ,
3737 bReload ?: boolean ,
38- ) : TypedContext < Data , Path > {
39- return super . createBindingContext ( sPath , oContext , mParameters , fnCallBack , bReload ) as TypedContext < Data , Path > ;
38+ ) : TypedJSONContext < Data , Path > {
39+ return super . createBindingContext ( sPath , oContext , mParameters , fnCallBack , bReload ) as TypedJSONContext < Data , Path > ;
4040 }
4141
4242 getData ( ) : Data {
@@ -46,11 +46,11 @@ export class TypedJSONModel<Data extends object> extends JSONModel {
4646 getProperty < Path extends AbsoluteBindingPath < Data > > ( sPath : Path ) : PropertyByAbsoluteBindingPath < Data , Path > ;
4747 getProperty < Path extends RelativeBindingPath < Data , Root > , Root extends AbsoluteBindingPath < Data > > (
4848 sPath : Path ,
49- oContext : TypedContext < Data , Root > ,
49+ oContext : TypedJSONContext < Data , Root > ,
5050 ) : PropertyByRelativeBindingPath < Data , Root , Path > ;
5151 getProperty < Path extends AbsoluteBindingPath < Data > | RelativeBindingPath < Data , Root > , Root extends AbsoluteBindingPath < Data > > (
5252 sPath : Path ,
53- oContext ?: TypedContext < Data , Root > ,
53+ oContext ?: TypedJSONContext < Data , Root > ,
5454 ) : PropertyByAbsoluteBindingPath < Data , Path > | PropertyByRelativeBindingPath < Data , Root , Path > {
5555 return super . getProperty ( sPath , oContext ) as
5656 | PropertyByAbsoluteBindingPath < Data , Path >
@@ -73,15 +73,15 @@ export class TypedJSONModel<Data extends object> extends JSONModel {
7373 setProperty < Path extends RelativeBindingPath < Data , Root > , Root extends AbsoluteBindingPath < Data > > (
7474 sPath : Path ,
7575 oValue : PropertyByRelativeBindingPath < Data , Root , Path > ,
76- oContext : TypedContext < Data , Root > ,
76+ oContext : TypedJSONContext < Data , Root > ,
7777 bAsyncUpdate ?: boolean ,
7878 ) : boolean ;
7979 setProperty < Path extends AbsoluteBindingPath < Data > | RelativeBindingPath < Data , Root > , Root extends AbsoluteBindingPath < Data > > (
8080 sPath : Path ,
8181 oValue : Path extends AbsoluteBindingPath < Data >
8282 ? PropertyByAbsoluteBindingPath < Data , Path >
8383 : PropertyByRelativeBindingPath < Data , Root , Path > ,
84- oContext ?: TypedContext < Data , Root > ,
84+ oContext ?: TypedJSONContext < Data , Root > ,
8585 bAsyncUpdate ?: boolean ,
8686 ) : boolean {
8787 return super . setProperty ( sPath , oValue , oContext , bAsyncUpdate ) ;
0 commit comments