mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-19 09:45:24 -04:00
🏷️ add typing
This commit is contained in:
parent
c832ae265f
commit
a028a8ef7e
1 changed files with 3 additions and 3 deletions
|
@ -3,14 +3,14 @@ import path from "path";
|
||||||
import rimraf from "rimraf";
|
import rimraf from "rimraf";
|
||||||
|
|
||||||
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
||||||
import { ColorSchema } from "../types";
|
import { ColorSchema, Config } from "../types";
|
||||||
|
|
||||||
const generateConfigs = (
|
const generateConfigs = (
|
||||||
colorSchemes: ColorSchema,
|
colorSchemes: ColorSchema,
|
||||||
dirPrefix: string,
|
dirPrefix: string,
|
||||||
rawSvgsDir: string
|
rawSvgsDir: string
|
||||||
) => {
|
) => {
|
||||||
const configs: any = [];
|
const configs: Array<Config> = [];
|
||||||
|
|
||||||
for (let [schema] of Object.entries(colorSchemes)) {
|
for (let [schema] of Object.entries(colorSchemes)) {
|
||||||
const { base, outline } = colorSchemes[schema];
|
const { base, outline } = colorSchemes[schema];
|
||||||
|
@ -52,7 +52,7 @@ const generateConfigs = (
|
||||||
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
||||||
|
|
||||||
configs.push({
|
configs.push({
|
||||||
svgDir: schemaSvgsPath,
|
svgsDir: schemaSvgsPath,
|
||||||
staticSvgs,
|
staticSvgs,
|
||||||
bitmapsDir,
|
bitmapsDir,
|
||||||
animatedCursors,
|
animatedCursors,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue