🏷️ Shared Types

This commit is contained in:
ful1e5 2020-08-27 17:41:48 +05:30
parent 3585ec7a9f
commit 5b329fa906

View file

@ -1,3 +1,5 @@
import { Config } from "common/src/types";
interface ColorSchema {
[name: string]: {
base: string;
@ -8,29 +10,4 @@ interface ColorSchema {
};
}
type AnimatedCursors = {
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 };
export { ColorSchema, Config };