Skip to content

Commit

Permalink
fix: type of primary options
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Nov 29, 2020
1 parent f68286d commit 8010392
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,16 @@ interface StylelintContext {
fix?: boolean;
}

/**
* A string or regular expression matching a CSS property name.
*/
type TCSSPropertyName = string | TRegExpString;

/**
* Primary options, a CSS property or list of CSS properties to lint.
* - Regular Expression strings are supported
*/
type TPrimaryOptions = string | TRegExpString | TPrimaryOptions[];
type TPrimaryOptions = TCSSPropertyName | TCSSPropertyName[];

/**
* Stylelint declaration strict value rule function.
Expand Down

0 comments on commit 8010392

Please sign in to comment.