UNPKG

@ryusei/light

Version:

<div align="center"> <a href="https://light.ryuseijs.com"> <img alt="RyuseiLight" src="https://light.ryuseijs.com/images/svg/logo.svg" width="70"> </a>

19 lines (14 loc) 553 B
import { Token } from '../../src/js/types'; declare global { namespace jest { interface Matchers<R> { toBeTokenized( lang: string, tokens: Token[], ignoreSpaces?: boolean, ignoreDepth?: boolean ): R; toBeTokenizedWithDepth( lang: string, tokens: Required<Token>[], ignoreSpaces?: boolean ): R; } interface Expect { toBeTokenized( lang: string, tokens: Token[], ignoreSpaces?: boolean ): any; toBeTokenizedWithDepth( lang: string, tokens: Required<Token>[], ignoreSpaces?: boolean ): any; } } } export {};