13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import type { Container } from "./interfaces";
|
|
import type { CardParser } from "./interfaces/cards";
|
|
|
|
export type ContainerHandler = {
|
|
populateContainer: () => void;
|
|
shuffleContainer: () => void;
|
|
getCardsPosition: (cards: string) => any;
|
|
hideCards: (cards: CardParser[]) => void;
|
|
showCards: (cards: CardParser[]) => void;
|
|
};
|
|
|
|
export const containerEvents = new Map<string, ContainerHandler>();
|