Skip to content

Commit

Permalink
Adding clarifications to some docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
emmacasolin committed Feb 14, 2022
1 parent a360302 commit 73c6d0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/bin/utils/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function validateParserToArgParser<T>(
}

/**
* Converts a validation parser to commander variadic argument parser
* Converts a validation parser to commander variadic argument parser.
* Variadic options/arguments are always space-separated.
*/
function validateParserToArgListParser<T>(
validate: (data: string) => T,
Expand Down Expand Up @@ -99,9 +100,9 @@ export {
parsePort,
parseNetwork,
parseSeedNodes,
parseProviderId,
parseIdentityId,
parseProviderIdList,
parseCoreCount,
parseSecretPath,
parseProviderIdList,
parseIdentityId,
parseProviderId,
};
3 changes: 3 additions & 0 deletions src/identities/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function browser(url: string): void {

/**
* Check whether a given identity matches at least one search term from a list.
* Use this to filter a list of identiy datas e.g. filtering connected
* identities or a list of identity lookups.
* If the provider has a native search ability, use that instead of this.
*/
function matchIdentityData(
identityData: IdentityData,
Expand Down

0 comments on commit 73c6d0f

Please sign in to comment.