Skip to content

Commit

Permalink
docs: Document types input parser's return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 17, 2023
1 parent bff2615 commit b6c3972
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/types-input-parser.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class TypesInputParser<T> {
return () => this.parseInput(inputName);
}

/** Parse an input with the given name */
/**
* Parse an input with the given name
* @return The types we detected
*/
public parseInput(name: string & TypedKeys<T, Set<string>>): Set<string> {
const regex = /^\s*([^:]+):\s*([^\n]+)$/;
const out = new Set<string>();
Expand Down

0 comments on commit b6c3972

Please sign in to comment.