Skip to content

Commit

Permalink
Use ReadonlyArray type in options, parameters
Browse files Browse the repository at this point in the history
Closes GH-30.

Reviewed-by: Remco Haszing <remcohaszing@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
bmish committed Nov 30, 2022
1 parent d91f3ad commit 0107259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
@@ -1,7 +1,7 @@
/**
* @typedef Options
* Configuration (optional).
* @property {string|null|Array<string|null|undefined>} [align]
* @property {string|null|ReadonlyArray<string|null|undefined>} [align]
* One style for all columns, or styles for their respective columns.
* Each style is either `'l'` (left), `'r'` (right), or `'c'` (center).
* Other values are treated as `''`, which doesn’t place the colon in the
Expand Down Expand Up @@ -146,7 +146,7 @@
/**
* Generate a markdown ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables)) table..
*
* @param {Array<Array<string|null|undefined>>} table
* @param {ReadonlyArray<ReadonlyArray<string|null|undefined>>} table
* Table data (matrix of strings).
* @param {Options} [options]
* Configuration (optional).
Expand Down

0 comments on commit 0107259

Please sign in to comment.