Основная структура

This commit is contained in:
2023-03-27 15:04:48 +04:00
parent d2ed8eaf58
commit f90f0c542b
13 changed files with 12384 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { AprilFoolsJokeClass } from "./handler";
import { Joke } from "./joke";
import { ShakeJoke } from "./jokes/shake";
(window as any).AprilJokes = ((jokes: JokeClassList): AprilFoolsJokeClass => {
const cl = new AprilFoolsJokeClass();
jokes.forEach(joke => {
cl.add(new joke());
});
return cl;
})([
ShakeJoke,
]);
interface JokeClassList extends Array<new () => Joke> {}