@@ -49,7 +49,7 @@ function defaultDiffer(prevProp: mixed, nextProp: mixed): boolean {
49
49
function restoreDeletedValuesInNestedArray (
50
50
updatePayload : Object ,
51
51
node : NestedNode ,
52
- validAttributes : AttributeConfiguration < > ,
52
+ validAttributes : AttributeConfiguration ,
53
53
) {
54
54
if ( Array . isArray ( node ) ) {
55
55
let i = node . length ;
@@ -107,7 +107,7 @@ function diffNestedArrayProperty(
107
107
updatePayload : null | Object ,
108
108
prevArray : Array < NestedNode > ,
109
109
nextArray : Array < NestedNode > ,
110
- validAttributes : AttributeConfiguration < > ,
110
+ validAttributes : AttributeConfiguration ,
111
111
) : null | Object {
112
112
const minLength =
113
113
prevArray . length < nextArray . length ? prevArray . length : nextArray . length ;
@@ -145,7 +145,7 @@ function diffNestedProperty(
145
145
updatePayload : null | Object ,
146
146
prevProp : NestedNode ,
147
147
nextProp : NestedNode ,
148
- validAttributes : AttributeConfiguration < > ,
148
+ validAttributes : AttributeConfiguration ,
149
149
) : null | Object {
150
150
if ( ! updatePayload && prevProp === nextProp ) {
151
151
// If no properties have been added, then we can bail out quickly on object
@@ -206,7 +206,7 @@ function diffNestedProperty(
206
206
function addNestedProperty (
207
207
updatePayload : null | Object ,
208
208
nextProp : NestedNode ,
209
- validAttributes : AttributeConfiguration < > ,
209
+ validAttributes : AttributeConfiguration ,
210
210
) {
211
211
if ( ! nextProp ) {
212
212
return updatePayload ;
@@ -236,7 +236,7 @@ function addNestedProperty(
236
236
function clearNestedProperty (
237
237
updatePayload : null | Object ,
238
238
prevProp : NestedNode ,
239
- validAttributes : AttributeConfiguration < > ,
239
+ validAttributes : AttributeConfiguration ,
240
240
) : null | Object {
241
241
if ( ! prevProp ) {
242
242
return updatePayload ;
@@ -268,7 +268,7 @@ function diffProperties(
268
268
updatePayload : null | Object ,
269
269
prevProps : Object ,
270
270
nextProps : Object ,
271
- validAttributes : AttributeConfiguration < > ,
271
+ validAttributes : AttributeConfiguration ,
272
272
) : null | Object {
273
273
let attributeConfig ;
274
274
let nextProp ;
@@ -369,13 +369,13 @@ function diffProperties(
369
369
updatePayload ,
370
370
prevProp ,
371
371
nextProp ,
372
- ( ( attributeConfig : any ) : AttributeConfiguration < > ) ,
372
+ ( ( attributeConfig : any ) : AttributeConfiguration ) ,
373
373
) ;
374
374
if ( removedKeyCount > 0 && updatePayload ) {
375
375
restoreDeletedValuesInNestedArray (
376
376
updatePayload ,
377
377
nextProp ,
378
- ( ( attributeConfig : any ) : AttributeConfiguration < > ) ,
378
+ ( ( attributeConfig : any ) : AttributeConfiguration ) ,
379
379
) ;
380
380
removedKeys = null ;
381
381
}
@@ -426,7 +426,7 @@ function diffProperties(
426
426
updatePayload = clearNestedProperty (
427
427
updatePayload ,
428
428
prevProp ,
429
- ( ( attributeConfig : any ) : AttributeConfiguration < > ) ,
429
+ ( ( attributeConfig : any ) : AttributeConfiguration ) ,
430
430
) ;
431
431
}
432
432
}
@@ -439,7 +439,7 @@ function diffProperties(
439
439
function addProperties (
440
440
updatePayload : null | Object ,
441
441
props : Object ,
442
- validAttributes : AttributeConfiguration < > ,
442
+ validAttributes : AttributeConfiguration ,
443
443
) : null | Object {
444
444
// TODO: Fast path
445
445
return diffProperties ( updatePayload , emptyObject , props , validAttributes ) ;
@@ -452,15 +452,15 @@ function addProperties(
452
452
function clearProperties (
453
453
updatePayload : null | Object ,
454
454
prevProps : Object ,
455
- validAttributes : AttributeConfiguration < > ,
455
+ validAttributes : AttributeConfiguration ,
456
456
) : null | Object {
457
457
// TODO: Fast path
458
458
return diffProperties ( updatePayload , prevProps , emptyObject , validAttributes ) ;
459
459
}
460
460
461
461
export function create (
462
462
props : Object ,
463
- validAttributes : AttributeConfiguration < > ,
463
+ validAttributes : AttributeConfiguration ,
464
464
) : null | Object {
465
465
return addProperties (
466
466
null , // updatePayload
@@ -472,7 +472,7 @@ export function create(
472
472
export function diff (
473
473
prevProps : Object ,
474
474
nextProps : Object ,
475
- validAttributes : AttributeConfiguration < > ,
475
+ validAttributes : AttributeConfiguration ,
476
476
) : null | Object {
477
477
return diffProperties (
478
478
null , // updatePayload
0 commit comments