Skip to content

Commit

Permalink
jdoc, changed variable to function for documentation purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
duart38 committed Mar 16, 2021
1 parent 80ae85f commit 01f3555
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions builder/ARRAY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ export class ARR<I> implements WritableBuilder<Array<I>, ARR<I>>, Logical {
return this;
}
}

/**
* Helper method to initiate an ARRAY carpenter
* @param value
* @returns
*/
export function ARRAY<I>(val: I[]): ARR<I> {
return new ARR(val);
}
7 changes: 6 additions & 1 deletion builder/STRING.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,9 @@ export class STR implements WritableBuilder<string, STR>, Logical {
return this;
}
}
export const STRING = (value: string) => new STR(value);
/**
* Helper method to initiate a STRING carpenter
* @param value
* @returns
*/
export function STRING(value: string){return new STR(value)}

0 comments on commit 01f3555

Please sign in to comment.