@oxlint/plugins 1.50.0 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1088,6 +1088,7 @@ type FilterFn = (token: TokenOrComment) => boolean;
|
|
|
1088
1088
|
type Token = BooleanToken | IdentifierToken | JSXIdentifierToken | JSXTextToken | KeywordToken | NullToken | NumericToken | PrivateIdentifierToken | PunctuatorToken | RegularExpressionToken | StringToken | TemplateToken;
|
|
1089
1089
|
interface BaseToken extends Span {
|
|
1090
1090
|
value: string;
|
|
1091
|
+
regex: undefined;
|
|
1091
1092
|
}
|
|
1092
1093
|
interface BooleanToken extends BaseToken {
|
|
1093
1094
|
type: "Boolean";
|
|
@@ -1116,11 +1117,12 @@ interface PrivateIdentifierToken extends BaseToken {
|
|
|
1116
1117
|
interface PunctuatorToken extends BaseToken {
|
|
1117
1118
|
type: "Punctuator";
|
|
1118
1119
|
}
|
|
1119
|
-
interface RegularExpressionToken extends
|
|
1120
|
+
interface RegularExpressionToken extends Span {
|
|
1120
1121
|
type: "RegularExpression";
|
|
1122
|
+
value: string;
|
|
1121
1123
|
regex: {
|
|
1122
|
-
flags: string;
|
|
1123
1124
|
pattern: string;
|
|
1125
|
+
flags: string;
|
|
1124
1126
|
};
|
|
1125
1127
|
}
|
|
1126
1128
|
interface StringToken extends BaseToken {
|