Skip to content

Commit

Permalink
Add strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 22, 2021
1 parent 61418e7 commit d14649c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,6 +1,6 @@
/**
* @typedef MarkdownTableOptions
* @property {string|string[]} [align]
* @property {string|null|Array.<string|null|undefined>} [align]
* @property {boolean} [padding=true]
* @property {boolean} [delimiterStart=true]
* @property {boolean} [delimiterStart=true]
Expand All @@ -12,7 +12,7 @@
/**
* Create a table from a matrix of strings.
*
* @param {string[][]} table
* @param {Array.<Array.<string|null|undefined>>} table
* @param {MarkdownTableOptions} [options]
* @returns {string}
*/
Expand Down Expand Up @@ -241,7 +241,7 @@ function defaultStringLength(value) {
}

/**
* @param {string} value
* @param {string|null|undefined} value
* @returns {number}
*/
function toAlignment(value) {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
@@ -1,5 +1,4 @@
{
"files": ["index.js"],
"include": ["*.js"],
"compilerOptions": {
"target": "ES2020",
Expand All @@ -11,6 +10,7 @@
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"strict": true
}
}

0 comments on commit d14649c

Please sign in to comment.