-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve types and docs of {import,export}SecretsBundle
#123
Conversation
d3daeff
to
0152de9
Compare
cc @poljar since you wrote the original PR |
{import,export}SecretsBundle
{import,export}SecretsBundle
/// Export all the secrets we have in the store into a {@link | ||
/// SecretsBundle}. |
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.
Since this documentation is used by typedoc, we have to use link formats that it understands.
(Note that currently the documentation at https://matrix-org.github.io/matrix-rust-sdk-crypto-wasm/classes/OlmMachine.html#importSecretsBundle doesn't link correctly).
/// The provided `SecretsBundle` is freed by this method; be careful not to | ||
/// use it once this method has been called. |
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.
invalidating an argument is a very non-JS thing to do, so let's call it out explicitly.
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.
Very nice improvement!
Followup on #118
cf #110