aoc-automation
Version:
Advent of Code tool to automate the repetitive parts of AoC.
22 lines (21 loc) • 561 B
TypeScript
type Tests = {
name?: string;
input: string;
expected: string | number | bigint | void;
}[];
type Solution = (input: string, testName?: string) => string | number | bigint | void;
type Solutions = {
part1?: {
solution: Solution;
tests?: Tests;
};
part2?: {
solution: Solution;
tests?: Tests;
testsPending?: Tests;
};
trimTestInputs?: boolean;
onlyTests?: boolean;
};
declare const run: (solutions: Solutions, customInputFile?: string) => void;
export default run;