UNPKG

dailyprogrammer

Version:

The /r/dailyprogrammer Tool provides you with a cli to quickly initialize programming challenges and publish them.

10 lines (9 loc) 323 B
import {IChallenge} from "./IChallenge"; import {Difficulty} from "./Difficulty"; /** * Interface that provides the application with challenges. */ export interface IChallengeProvider { getAll( difficulty?: Difficulty ): Promise<IChallenge[]>; get( id: number, difficulty?: Difficulty ): Promise<IChallenge[]>; }