Add docs comments and tests for TypeScript definitions (#299)

Fixes #293
This commit is contained in:
George Gkasdrogkas 2018-12-26 03:06:00 +02:00 committed by Sindre Sorhus
parent f590a65489
commit 90c7a92ff1
9 changed files with 438 additions and 169 deletions

View file

@ -50,7 +50,7 @@ function parseStyle(style) {
let matches;
while ((matches = STYLE_REGEX.exec(style)) !== null) {
const name = matches[1];
const name = matches[1]; // eslint-disable-line prefer-destructuring
if (matches[2]) {
const args = parseArguments(name, matches[2]);