From c832ae265f6ec69d3cf6bf9de558d8c1785573c2 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Sun, 16 Aug 2020 12:42:20 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20Config=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/types.ts | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/packages/round/src/types.ts b/packages/round/src/types.ts index 4842f39a..f8767de1 100644 --- a/packages/round/src/types.ts +++ b/packages/round/src/types.ts @@ -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; + bitmapsDir: string; + svgsDir: string; + animatedCursors: AnimatedCursors; + animatedClip: AnimatedClip; +} + +export { ColorSchema, Config };