Skip to content

Commit

Permalink
refactor: Refactored JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zoemaas committed May 7, 2024
1 parent 578ee2c commit 71dbeac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/common/lib/functions/Encoding.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BAD_PARAMS, DecodeURIAsJsonOpts, EncodeJsonAsURIOpts, JsonURIMode, OpenId4VCIVersion, SearchValue } from '../types';

/**
* @function encodeJsonAsURI encodes a Json object into a URI
* @param json object
* @param opts:
* @type {(json: {[s:string]: never} | ArrayLike<never> | string | object, opts?: EncodeJsonAsURIOpts)} encodes a Json object into a URI
* @param { {[s:string]: never} | ArrayLike<never> | string | object } json
* @param {EncodeJsonAsURIOpts} [opts] Option to encode json as uri
* - urlTypeProperties: a list of properties of which the value is a URL
* - arrayTypeProperties: a list of properties which are an array
*/
Expand Down Expand Up @@ -82,8 +82,8 @@ export function convertJsonToURI(

/**
* @type {(uri: string, opts?: DecodeURIAsJsonOpts): unknown} convertURIToJsonObject converts an URI into a Json object decoding its properties
* @param uri string
* @param opts
* @param {string} uri
* @param {DecodeURIAsJsonOpts} [opts]
* - requiredProperties: the required properties
* - arrayTypeProperties: properties that can show up more that once
* @returns JSON object
Expand Down

0 comments on commit 71dbeac

Please sign in to comment.