Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stricter types on login functions #3482

Closed
wants to merge 2 commits into from

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Jun 16, 2023

For element-hq/element-web#21967

Pulling the loose string from strictification work in AddThreepid I found these untyped functions.
There is some distance between the spec and js-sdk's current implementation, for example the login type "m.login.saml2"

Breaking as far as types, no changes to logic.

With matrix-org/matrix-react-sdk#11101

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Here's what your changelog entry will look like:

🚨 BREAKING CHANGES

Copy link

@artcodespace artcodespace left a comment

Choose a reason for hiding this comment

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

Just one comment, I think there's another TODO you can remove. Looks good though.

};
}
return response;
});
}

/**
* @returns Promise which resolves: TODO

Choose a reason for hiding this comment

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

Is the TODO relating to the type it returns? Not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants