Skip to content

Commit

Permalink
chore(index): improve OptionDetails type (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Feb 6, 2025
1 parent 7659827 commit c2485f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ UnRTF will use the directory of the original file to store embedded pictures.
| Name | Type | Description |
| --- | --- | --- |
| arg | <code>string</code> | The argument to pass to the binary. |
| type | <code>string</code> | The type of the option (`boolean`, `string`, etc). |
| type | <code>&#x27;boolean&#x27;</code> \| <code>&#x27;number&#x27;</code> \| <code>&#x27;string&#x27;</code> | The type of the option. |
| minVersion | <code>string</code> | The minimum version of the binary that supports this option. |
| [maxVersion] | <code>string</code> | The maximum version of the binary that supports this option (optional). |

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const unrtfVersionRegex = /^(\d{1,2}\.\d{1,2}\.\d{1,2})/u;
/**
* @typedef {object} OptionDetails
* @property {string} arg The argument to pass to the binary.
* @property {string} type The type of the option (`boolean`, `string`, etc).
* @property {('boolean'|'number'|'string')} type The type of the option.
* @property {string} minVersion The minimum version of the binary that supports this option.
* @property {string} [maxVersion] The maximum version of the binary that supports this option (optional).
*/
Expand Down

0 comments on commit c2485f9

Please sign in to comment.