File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export const arrayFilter = <Value>(
5656 cb : ( value : Value ) => boolean ,
5757) : Value [ ] => array . filter ( cb ) ;
5858
59- export const arrayClear = < Value > ( array : Value [ ] = [ ] , to ?: number ) : Value [ ] =>
59+ export const arrayClear = < Value > ( array : Value [ ] , to ?: number ) : Value [ ] =>
6060 array . splice ( 0 , to ) ;
6161
6262export const arrayPush = < Value > ( array : Value [ ] , ...values : Value [ ] ) : number =>
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export const createCustomPersister = <
258258 const getStore = ( ) : Store => store ;
259259
260260 const destroy = ( ) : Persister < Persist > => {
261- arrayClear ( mapGet ( scheduleActions , scheduleId ) ) ;
261+ arrayClear ( mapGet ( scheduleActions , scheduleId ) as Action [ ] ) ;
262262 return stopAutoLoad ( ) . stopAutoSave ( ) ;
263263 } ;
264264
You can’t perform that action at this time.
0 commit comments