Skip to content

Commit

Permalink
Fix types in token-list
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Mar 25, 2020
1 parent 2031351 commit 449bb18
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/token-list/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ export default class TokenList {

// Disable reason: These are type hints on the class.
/* eslint-disable no-unused-expressions */
/** @type string */
/** @type {string} */
this._currentValue;

/** @type string[] */
/** @type {string[]} */
this._valueAsArray;
/* eslint-enable no-unused-expressions */
}

// Disable reason: JSDoc lint doesn't understand TypeScript types
/* eslint-disable jsdoc/valid-types */

/**
* @param {Parameters<Array<string>['entries']>} args
*/
Expand Down Expand Up @@ -55,6 +58,8 @@ export default class TokenList {
return this._valueAsArray.values( ...args );
}

/* eslint-enable jsdoc/valid-types */

/**
* Returns the associated set as string.
*
Expand Down

0 comments on commit 449bb18

Please sign in to comment.