File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ const lastVisibleThreadTabSlug: Reducer<TabSlug> = (
180180 }
181181} ;
182182
183- const trackThreadHeights : Reducer < { [ key : ThreadsKey ] : CssPixels } > = (
183+ const trackThreadHeights : Reducer < Partial < Record < ThreadsKey , CssPixels > > > = (
184184 state = { } ,
185185 action
186186) => {
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ export const getPanelLayoutGeneration: Selector<number> = (state) =>
5959 getApp ( state ) . panelLayoutGeneration ;
6060export const getLastVisibleThreadTabSlug : Selector < TabSlug > = ( state ) =>
6161 getApp ( state ) . lastVisibleThreadTabSlug ;
62- export const getTrackThreadHeights : Selector < {
63- [ key : ThreadsKey ] : CssPixels ;
64- } > = ( state ) => getApp ( state ) . trackThreadHeights ;
62+ export const getTrackThreadHeights : Selector <
63+ Partial < Record < ThreadsKey , CssPixels > >
64+ > = ( state ) => getApp ( state ) . trackThreadHeights ;
6565export const getIsNewlyPublished : Selector < boolean > = ( state ) =>
6666 getApp ( state ) . isNewlyPublished ;
6767export const getExperimental : Selector < ExperimentalFlags > = ( state ) =>
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export type AppState = {
185185 readonly sidebarOpenCategories : Map < string , Set < number > > ;
186186 readonly panelLayoutGeneration : number ;
187187 readonly lastVisibleThreadTabSlug : TabSlug ;
188- readonly trackThreadHeights : Record < ThreadsKey , CssPixels > ;
188+ readonly trackThreadHeights : Partial < Record < ThreadsKey , CssPixels > > ;
189189 readonly isNewlyPublished : boolean ;
190190 readonly isDragAndDropDragging : boolean ;
191191 readonly isDragAndDropOverlayRegistered : boolean ;
Original file line number Diff line number Diff line change @@ -350,4 +350,6 @@ export type Transform = TransformDefinitions[keyof TransformDefinitions];
350350export type TransformType = Transform [ 'type' ] ;
351351
352352export type TransformStack = Transform [ ] ;
353- export type TransformStacksPerThread = { [ key : ThreadsKey ] : TransformStack } ;
353+ export type TransformStacksPerThread = Partial <
354+ Record < ThreadsKey , TransformStack >
355+ > ;
You can’t perform that action at this time.
0 commit comments