mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-23 11:36:55 -04:00
🏷️ Shared Types
This commit is contained in:
parent
3585ec7a9f
commit
5b329fa906
1 changed files with 3 additions and 26 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import { Config } from "common/src/types";
|
||||||
|
|
||||||
interface ColorSchema {
|
interface ColorSchema {
|
||||||
[name: string]: {
|
[name: string]: {
|
||||||
base: string;
|
base: string;
|
||||||
|
@ -8,29 +10,4 @@ interface ColorSchema {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
type AnimatedCursors = {
|
export { ColorSchema, Config };
|
||||||
readonly [name: string]: {
|
|
||||||
readonly frames: number;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
type AnimatedClip = {
|
|
||||||
readonly x: number;
|
|
||||||
readonly y: number;
|
|
||||||
readonly width: number;
|
|
||||||
readonly height: number;
|
|
||||||
};
|
|
||||||
|
|
||||||
interface Config {
|
|
||||||
staticCursors: Array<string>;
|
|
||||||
bitmapsDir: string;
|
|
||||||
svgsDir: string;
|
|
||||||
animatedCursors: AnimatedCursors;
|
|
||||||
animatedClip: AnimatedClip;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Configs {
|
|
||||||
[name: string]: Config;
|
|
||||||
}
|
|
||||||
|
|
||||||
export { ColorSchema, Config, Configs };
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue