🏷️ Config type

This commit is contained in:
ful1e5 2020-08-16 12:42:20 +05:30
parent d55c2f8780
commit c832ae265f

View file

@ -1,6 +1,29 @@
export interface ColorSchema {
interface ColorSchema {
[name: string]: {
base: string;
outline: string;
};
}
type AnimatedCursors = {
readonly [name: string]: {
readonly frames: number;
};
};
type AnimatedClip = {
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
};
interface Config {
staticSvgs: Array<string>;
bitmapsDir: string;
svgsDir: string;
animatedCursors: AnimatedCursors;
animatedClip: AnimatedClip;
}
export { ColorSchema, Config };