mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-30 06:45:31 -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
|
||||
type AnimatedCursors = {
|
||||
readonly [name: string]: {
|
||||
readonly frames: number;
|
||||
};
|
||||
};
|
||||
import { BoundingBox } from "puppeteer";
|
||||
|
||||
type AnimatedClip = {
|
||||
readonly x: number;
|
||||
readonly y: number;
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
};
|
||||
type AnimatedCursors = Record<string, { frames: number }>;
|
||||
|
||||
type AnimatedClip = BoundingBox | undefined;
|
||||
|
||||
interface Config {
|
||||
staticCursors: Array<string>;
|
||||
staticCursors: string[];
|
||||
bitmapsDir: string;
|
||||
svgsDir: string;
|
||||
animatedCursors: AnimatedCursors;
|
||||
animatedClip: AnimatedClip;
|
||||
}
|
||||
|
||||
export { Config };
|
||||
export { Config, AnimatedCursors, AnimatedClip };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue