@@ -11,12 +11,12 @@ export function toReactiveINodeJS(
11
11
return cache . memoize ( node , ( ) => new ReactiveINodeJS ( node , cache ) ) ;
12
12
}
13
13
14
- // This declaration specifies the types of the implemenation in `unwrapReactiveINodeJS` further.
14
+ // This declaration specifies the types of the implementation in `unwrapReactiveINodeJS` further.
15
15
// It declares, that when
16
16
// * an `INodeJS` is given an `INodeJS` is returned
17
17
// * an `undefined` is given an `undefined` is returned
18
18
// * an `null` is given an `null` is returned
19
- // This so called conditional types help avoid unneed assertsion about types on the usage site.
19
+ // This so called conditional types help avoid unneeded assertions about types on the usage site.
20
20
// See. https://www.typescriptlang.org/docs/handbook/2/conditional-types.html
21
21
function unwrapReactiveINodeJS < T extends INodeJS | null | undefined > (
22
22
maybeReactive : T ,
@@ -34,7 +34,7 @@ function unwrapReactiveINodeJS(
34
34
}
35
35
}
36
36
37
- // `any` is currectly provided as the type for references from `@modelix/ts-model-api`,
37
+ // `any` is correctly provided as the type for references from `@modelix/ts-model-api`,
38
38
// so we have to work with it for now.
39
39
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40
40
type INodeReferenceJS = any ;
@@ -108,10 +108,10 @@ export class ReactiveINodeJS implements INodeJS {
108
108
109
109
getParent ( ) : INodeJS | undefined {
110
110
// This does not need to be made reacitve for the same reason as getRoleInParent
111
- const unreacitveNode = this . unreactiveNode . getParent ( ) ;
112
- return unreacitveNode
113
- ? toReactiveINodeJS ( unreacitveNode , this . cache )
114
- : unreacitveNode ;
111
+ const unreactiveNode = this . unreactiveNode . getParent ( ) ;
112
+ return unreactiveNode
113
+ ? toReactiveINodeJS ( unreactiveNode , this . cache )
114
+ : unreactiveNode ;
115
115
}
116
116
117
117
remove ( ) : void {
@@ -143,12 +143,12 @@ export class ReactiveINodeJS implements INodeJS {
143
143
index : number ,
144
144
concept : IConceptJS | undefined ,
145
145
) : INodeJS {
146
- const unreacitveNode = this . unreactiveNode . addNewChild (
146
+ const unreactiveNode = this . unreactiveNode . addNewChild (
147
147
role ,
148
148
index ,
149
149
concept ,
150
150
) ;
151
- return toReactiveINodeJS ( unreacitveNode , this . cache ) ;
151
+ return toReactiveINodeJS ( unreactiveNode , this . cache ) ;
152
152
}
153
153
154
154
removeChild ( child : INodeJS ) : void {
@@ -200,7 +200,11 @@ export class ReactiveINodeJS implements INodeJS {
200
200
}
201
201
202
202
getPropertyValue ( role : string ) : string | undefined {
203
- const ref = this . getOrCreateRefForRole ( this . byRoleRefToProperty , role , this . propertyGetter ) ;
203
+ const ref = this . getOrCreateRefForRole (
204
+ this . byRoleRefToProperty ,
205
+ role ,
206
+ this . propertyGetter ,
207
+ ) ;
204
208
return ref . value ;
205
209
}
206
210
0 commit comments