Skip to content

Commit

Permalink
fix: hasModifier allows ts.Modifier[]
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Feb 6, 2023
1 parent 3709e3f commit 623bb0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/has.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import * as ts from "typescript";

export function hasModifier(
modifiers: ts.ModifiersArray | undefined,
...kinds: Array<ts.Modifier["kind"]>
modifiers: ts.ModifiersArray | ts.Modifier[] | undefined,
...kinds: ts.Modifier["kind"][]
) {
if (modifiers === undefined) return false;
for (const modifier of modifiers)
Expand Down

0 comments on commit 623bb0f

Please sign in to comment.