@@ -65,14 +65,6 @@ export abstract class State {
6565 }
6666
6767 static assign < State > ( state : State , path : string [ ] , value ?) {
68- interface Modifiable {
69- key : string ;
70- operations : {
71- clone < T > ( ) : T ;
72- update < T , V > ( key : number | string , value : V ) : T ;
73- } ;
74- } ;
75-
7668 const operations = State . inspect ( state ) ;
7769
7870 if ( path . length === 0 ) {
@@ -157,7 +149,7 @@ export abstract class State {
157149 }
158150 } ,
159151 // Merge
160- ( parent , key : number | string | string [ ] , value : K , setter : ( v : K ) => K ) => {
152+ ( parent , key : number | string | string [ ] , value : K ) => {
161153 if ( key ) {
162154 return parent . mergeDeepIn ( Array . isArray ( key ) ? key : [ key ] , value ) ;
163155 }
@@ -185,7 +177,7 @@ export abstract class State {
185177 } ,
186178
187179 // Merge
188- ( parent , key : number | string , value : K , setter : ( v : K ) => K ) => {
180+ ( parent , _ , value : K , setter : ( v : K ) => K ) => {
189181 setter ( parent . concat ( value ) ) ;
190182 return parent ;
191183 } ,
@@ -210,7 +202,7 @@ export abstract class State {
210202 } ,
211203
212204 // Merge
213- ( parent : Map < string , any > , key : number | string , value : K , setter : ( v : K ) => K ) => {
205+ ( parent : Map < string , any > , _ , value : K ) => {
214206 const m = new Map < string , any > ( < any > value ) ;
215207 m . forEach ( ( value , key ) => parent . set ( key , value ) ) ;
216208 return parent ;
@@ -238,7 +230,7 @@ export abstract class State {
238230 } ,
239231
240232 // Merge
241- ( parent : Set < any > , key : number | string , value , setter : ( v : K ) => K ) => {
233+ ( parent : Set < any > , _ , value ) => {
242234 for ( const element of value ) {
243235 parent . add ( element ) ;
244236 }
@@ -274,7 +266,7 @@ export abstract class State {
274266 }
275267 return Object . assign ( parent , value ) ;
276268 } ,
277- ( parent , key : number | string , value : K , setter : ( v : K ) => K ) => {
269+ ( parent , _ , value : K ) => {
278270 for ( const k of Object . keys ( value ) ) {
279271 parent [ k ] = value [ k ] ;
280272 }
0 commit comments