Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Conform more of the codebase to strict types #11162

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 29, 2023

For element-hq/element-web#21967


This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jun 29, 2023
@t3chguy t3chguy marked this pull request as ready for review June 29, 2023 10:16
@t3chguy t3chguy requested a review from a team as a code owner June 29, 2023 10:16
@t3chguy t3chguy self-assigned this Jun 29, 2023
src/NodeAnimator.tsx Show resolved Hide resolved
@@ -58,7 +58,7 @@ export type Binding = {
* https://gist.github.com/jryans/839a09bf0c5a70e2f36ed990d50ed928
*/
export default class AddThreepid {
private sessionId: string;
private sessionId?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems odd to me that we have a ? here then lots of ! later on. Couldn't we use the ! here instead?

Think I might be missing something here though

Copy link
Member Author

@t3chguy t3chguy Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type can be undefined, the assertions later are because they'll be handled by the promise rejection. Happy to undo though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that makes sense - don't see any need to undo

@t3chguy t3chguy merged commit 95283d2 into develop Jun 29, 2023
@t3chguy t3chguy deleted the t3chguy/types/29jun23 branch June 29, 2023 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants