mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 19:49:29 +08:00
32 lines
No EOL
2.8 KiB
Text
32 lines
No EOL
2.8 KiB
Text
import { TSESTree } from '../../ts-estree';
|
|
declare type IsSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is SpecificToken;
|
|
declare type IsNotSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is Exclude<TSESTree.Token, SpecificToken>;
|
|
declare type PunctuatorTokenWithValue<Value extends string> = TSESTree.PunctuatorToken & {
|
|
value: Value;
|
|
};
|
|
declare type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
declare type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
|
|
declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
|
|
declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
|
|
declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
|
|
declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
|
|
declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
|
|
declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
|
|
declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
|
|
declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
|
|
declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
|
|
declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
|
|
declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
|
|
declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
|
declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
|
declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
|
|
declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
|
|
declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
|
|
declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
|
|
declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
|
|
declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
|
|
declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
|
|
declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
|
|
export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, };
|
|
//# sourceMappingURL=predicates.d.ts.map |