🏷️ Types cleanup

This commit is contained in:
ful1e5 2020-08-27 17:30:44 +05:30
parent 4bf6ed63fa
commit 223dc85987

View file

@ -1,23 +1,15 @@
// --------------------------- Types import { BoundingBox } from "puppeteer";
type AnimatedCursors = {
readonly [name: string]: {
readonly frames: number;
};
};
type AnimatedClip = { type AnimatedCursors = Record<string, { frames: number }>;
readonly x: number;
readonly y: number; type AnimatedClip = BoundingBox | undefined;
readonly width: number;
readonly height: number;
};
interface Config { interface Config {
staticCursors: Array<string>; staticCursors: string[];
bitmapsDir: string; bitmapsDir: string;
svgsDir: string; svgsDir: string;
animatedCursors: AnimatedCursors; animatedCursors: AnimatedCursors;
animatedClip: AnimatedClip; animatedClip: AnimatedClip;
} }
export { Config }; export { Config, AnimatedCursors, AnimatedClip };