Skip to content

Commit

Permalink
docs: updated example docstring
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Ferreira <[email protected]>
  • Loading branch information
andreabadesso and pedroferreira1 authored Jan 25, 2024
1 parent 0f228c6 commit e31e8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { IContext } from '../types';
* Given a URL 'http://example.com' and a context object
* { appName: 'wallet-mobile', clientKey: 'key', properties: { x: 'foo', y: 'bar' } },
* this function will return a new URL:
* 'http://example.com?appName=wallet-mobile&clientKey=&properties[x]=foo&properties[y]=bar'.
* 'http://example.com?appName=wallet-mobile&clientKey=key&properties[x]=foo&properties[y]=bar'.
*/
export const urlWithContextAsQuery = (url: URL, context: IContext): URL => {
const notNullOrUndefined = ([, value]: [string, string]) =>
Expand Down

0 comments on commit e31e8bd

Please sign in to comment.