advent-of-code-client
Version:
A NodeJS client for fetching inputs, running puzzle challenges and submitting answers to Advent Of Code directly from your JavaScript code.
11 lines (10 loc) • 346 B
TypeScript
import { Cache, Config, Result } from '../AocClient.types';
export declare function getInput(config: Config, cache: Cache): Promise<string>;
declare type Params = {
part: Result;
answer: Result;
};
export declare const postAnswer: ({ part, answer }: Params, config: Config, cache: Cache) => Promise<{
correct: boolean;
}>;
export {};