Skip to content

Commit 058ccfa

Browse files
committed
fix expected message type in d.ts declaration
1 parent fa64d61 commit 058ccfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/stylelint/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type FileCache = {
4343
// be found here: https://stackoverflow.com/questions/52667959/what-is-the-purpose-of-bivariancehack-in-typescript-types.
4444
// and in the original discussion: https://github.com/stylelint/stylelint/pull/6147#issuecomment-1155337016.
4545
type RuleMessageFunc = {
46-
bivariance(...args: (string | number | boolean | RegExp)[]): string;
46+
bivariance(...args: (string | number | boolean | RegExp | string[])[]): string;
4747
}['bivariance'];
4848

4949
type RuleSeverityFunc = {
@@ -571,7 +571,7 @@ declare namespace stylelint {
571571
'rule-nesting-at-rule-required-list': CoreRule<
572572
OneOrMany<StringOrRegex>,
573573
{},
574-
ExpectedMessage<[patterns: string]>
574+
ExpectedMessage<[patterns: string[]]>
575575
>;
576576
'declaration-block-no-redundant-longhand-properties': CoreRule<
577577
true,

0 commit comments

Comments
 (0)