mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
⚙️ Fix type assertion for svgsData to ensure correct typing as iSVG[]
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import { svgs } from "./svgs";
|
|||||||
|
|
||||||
export const svgsData = svgs.map((svg: iSVG, index: number) => {
|
export const svgsData = svgs.map((svg: iSVG, index: number) => {
|
||||||
return { id: index, ...svg };
|
return { id: index, ...svg };
|
||||||
});
|
}) as iSVG[];
|
||||||
|
|
||||||
export const getCategories = () => {
|
export const getCategories = () => {
|
||||||
const categories = svgs
|
const categories = svgs
|
||||||
|
|||||||
Reference in New Issue
Block a user