sucrase
Version:
Super-fast alternative to Babel for when you can target modern JS runtimes
10 lines (9 loc) • 461 B
TypeScript
import { Token } from "../../sucrase-babylon/tokenizer";
import { TokenType } from "../../sucrase-babylon/tokenizer/types";
/**
* An "atom" in this context is a token that is an expression all by itself,
* like an identifier or a literal.
*/
export declare function isTypeExpressionAtom(tokenType: TokenType): boolean;
export declare function isTypeExpressionPrefix(tokenType: TokenType): boolean;
export declare function isTypeBinop(token: Token): boolean;