🏷️ add typing

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

View file

@ -3,14 +3,14 @@ import path from "path";
import rimraf from "rimraf";
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
import { ColorSchema } from "../types";
import { ColorSchema, Config } from "../types";
const generateConfigs = (
colorSchemes: ColorSchema,
dirPrefix: string,
rawSvgsDir: string
) => {
const configs: any = [];
const configs: Array<Config> = [];
for (let [schema] of Object.entries(colorSchemes)) {
const { base, outline } = colorSchemes[schema];
@ -52,7 +52,7 @@ const generateConfigs = (
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
configs.push({
svgDir: schemaSvgsPath,
svgsDir: schemaSvgsPath,
staticSvgs,
bitmapsDir,
animatedCursors,