Skip to content

Commit

Permalink
📚 docs: add jsdoc for type of each part of speech
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-t-b committed Jul 2, 2024
1 parent af29364 commit 5c52740
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"rima",
"rimum",
"rimus",
"sapienter",
"sapientis",
"sapientius",
"scribere",
Expand Down
7 changes: 7 additions & 0 deletions adjectives/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ const Options = z.object({
overrides: Overrides
}).default({});

/** The type for a declined adjective. This can be passed to {@link scriptor} for better intellisense.
*
* @example
* ```ts
* const declined = scriptor<Adjective>("sapiens, sapientis");
* ```
*/
type AdjectiveOptions = {
overrides?: AdjectiveShape
} | undefined;
Expand Down
7 changes: 7 additions & 0 deletions adverbs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ const Options = z.object({
overrides: Overrides
}).default({});

/** The type for the forms of an adverb. This can be passed to {@link scriptor} for better intellisense.
*
* @example
* ```ts
* const forms = scriptor<Adverb>("sapienter");
* ```
*/
type AdverbOptions = {
overrides?: AdverbShape
} | undefined;
Expand Down
7 changes: 7 additions & 0 deletions nouns/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ const Options = z.object({
overrides: Overrides
}).default({});

/** The type for a declined noun. This can be passed to {@link scriptor} for better intellisense.
*
* @example
* ```ts
* const declined = scriptor<Noun>("scriptor, scriptoris, m");
* ```
*/
type NounOptions = {
iStem?: boolean,
overrides?: NounShape
Expand Down
7 changes: 7 additions & 0 deletions verbs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ const Options = z.object({
overrides: Overrides
}).default({});

/** The type for a conjugated verb. This can be passed to {@link scriptor} for better intellisense.
*
* @example
* ```ts
* const conjugated = scriptor<Verb>("scribo, scribere, scripsi, scriptus");
* ```
*/
type VerbOptions = {
overrides?: VerbShape
} | undefined;
Expand Down

0 comments on commit 5c52740

Please sign in to comment.