From 4bf6ed63faf09fc3aa8c3d4c2dc0f7863a93b80a Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Thu, 27 Aug 2020 16:33:39 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9B=20Export=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/common/src/types.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/common/src/types.ts diff --git a/packages/common/src/types.ts b/packages/common/src/types.ts new file mode 100644 index 00000000..06d5c268 --- /dev/null +++ b/packages/common/src/types.ts @@ -0,0 +1,23 @@ +// --------------------------- Types +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; + bitmapsDir: string; + svgsDir: string; + animatedCursors: AnimatedCursors; + animatedClip: AnimatedClip; +} + +export { Config };