1 | import { TSESTree } from '../../ts-estree';
|
2 | declare type IsSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is SpecificToken;
|
3 | declare type IsNotSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is Exclude<TSESTree.Token, SpecificToken>;
|
4 | declare type PunctuatorTokenWithValue<Value extends string> = TSESTree.PunctuatorToken & {
|
5 | value: Value;
|
6 | };
|
7 | declare type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
8 | declare type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
9 | declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
|
10 | declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
|
11 | declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
|
12 | declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
|
13 | declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
|
14 | declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
|
15 | declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
|
16 | declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
|
17 | declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
|
18 | declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
|
19 | declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
|
20 | declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
|
21 | declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
22 | declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
23 | declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
|
24 | declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
|
25 | declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
|
26 | declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
|
27 | declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
|
28 | declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
|
29 | declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
|
30 | declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
|
31 | export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, };
|
32 |
|
\ | No newline at end of file |