-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix encode, decode and uuid docs examples #929
Conversation
@@ -40,12 +40,12 @@ export const encode = (data, options = { parseJson: true }) => { | |||
* @param {object} options - Options. |
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.
Can we add what options we support, Something like this i guess
* @param {boolean} [options.parseJson=true] - Whether to parse the decoded string as JSON.
packages/common/src/util/base64.js
Outdated
@@ -9,13 +9,13 @@ import _ from 'lodash'; | |||
* @param {object} options - Options. |
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.
* @param {boolean} [options.parseJson=true] - Whether to parse the encoded string as JSON.
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.
Agreed - thanks!
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.
The docs looks good @josephjclark
Just a tiny suggestion, can we document the supported option.
Something like this
* @param {boolean} [options.parseJson=true] - Whether to parse the decoded string as JSON.
If your happy with the language i can push the changes on this branch
I am patching common but not updating other adaptors. I think this will be OK |
hmm. That's caused a weird package lock diff because common is unlinked. Not sure I understand this. Since this is a docs only change, I'll revert and remove the version bump. Leaving the history because I want to keep a record of that fail |
Summary
Namespaces are missing in these examples!
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to
know!):
You can read more details in our
Responsible AI Policy