Use Record<string,*> instead of Record<number,*>
Objects in js are alwais indexed by strings.
This commit is contained in:
parent
d302940da6
commit
147ff271f8
|
|
@ -20,7 +20,7 @@ interface IState {
|
|||
@observer
|
||||
class Messages extends Component<IProps & Stores<'messagesStore' | 'appStore'>, IState> {
|
||||
@observable
|
||||
private heights: Record<number, number> = {};
|
||||
private heights: Record<string, number> = {};
|
||||
|
||||
private static appId(props: IProps) {
|
||||
if (props === undefined) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ interface MessagesState {
|
|||
|
||||
export class MessagesStore {
|
||||
@observable
|
||||
private state: Record<number, MessagesState> = {};
|
||||
private state: Record<string, MessagesState> = {};
|
||||
|
||||
private loading = false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue