mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 02:05:12 -04:00
🏷️ typing
This commit is contained in:
parent
2ae0f8ea65
commit
f9ba957ee6
1 changed files with 4 additions and 4 deletions
|
@ -4,14 +4,14 @@ import rimraf from "rimraf";
|
|||
|
||||
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
||||
import { schemesPath } from "../config";
|
||||
import { ColorSchema, Config } from "../types";
|
||||
import { ColorSchema, Configs } from "../types";
|
||||
|
||||
const generateConfigs = (
|
||||
colorSchemes: ColorSchema,
|
||||
dirPrefix: string,
|
||||
rawSvgsDir: string
|
||||
) => {
|
||||
const configs: Array<Config> = [];
|
||||
const configs: Configs = {};
|
||||
|
||||
for (let [schema] of Object.entries(colorSchemes)) {
|
||||
const { base, outline } = colorSchemes[schema];
|
||||
|
@ -52,13 +52,13 @@ const generateConfigs = (
|
|||
);
|
||||
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
||||
|
||||
configs.push({
|
||||
configs[schema] = {
|
||||
svgsDir: schemaSvgsPath,
|
||||
staticSvgs,
|
||||
bitmapsDir,
|
||||
animatedCursors,
|
||||
animatedClip
|
||||
});
|
||||
};
|
||||
} catch (error) {
|
||||
console.error("An error occurred in .svg files generation.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue