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 { 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue