twing
Version:
First-class Twig engine for Node.js
10 lines (9 loc) • 374 B
TypeScript
import type { TwingTest } from "../test";
import { TwingSynchronousTest } from "../test";
/**
* Gets a test by name.
*
* @param {string} name The test name
* @returns {TwingTest} A MyTest instance or null if the test does not exist
*/
export declare const getTest: <Test extends TwingTest | TwingSynchronousTest>(tests: Map<string, Test>, name: string) => Test | null;