-
-
Notifications
You must be signed in to change notification settings - Fork 812
Migrate FilePanel to TypeScript #6283
Conversation
t3chguy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
| import { MatrixEvent, Room } from 'matrix-js-sdk/src'; | ||
| import { TimelineWindow } from 'matrix-js-sdk/src/timeline-window'; | ||
|
|
||
| import * as sdk from '../../index'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to kill this off during this conversion imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I'm aware it's still needed for tests sometimes?
Under what circumstances is it acceptable to remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well this'll be for the getComponent calls below, my point was we can probably eradicate them by switching to type-safe imports
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Migrated as part of my investigation for element-hq/element-web#17753
Requires #6283