mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-31 07:08:28 -04:00
🏷️ Types cleanup
This commit is contained in:
parent
4bf6ed63fa
commit
223dc85987
1 changed files with 6 additions and 14 deletions
|
@ -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 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue