Add IconType enum, make Service fields readonly
This commit is contained in:
parent
097d2e9e5e
commit
08282e07f0
1 changed files with 16 additions and 7 deletions
|
@ -1,9 +1,18 @@
|
|||
export type Service = {
|
||||
name: string;
|
||||
icon: string;
|
||||
href: string;
|
||||
desc: string;
|
||||
warn: string;
|
||||
extLink?: string;
|
||||
id: number;
|
||||
readonly name: string;
|
||||
readonly icon: string;
|
||||
readonly iconType: IconType;
|
||||
readonly href: string;
|
||||
readonly desc: string;
|
||||
readonly warn: string;
|
||||
readonly extLink?: string;
|
||||
readonly id: number;
|
||||
};
|
||||
|
||||
export enum IconType {
|
||||
SVG = "svg",
|
||||
AVIF = "avif",
|
||||
PNG = "png",
|
||||
WEBP = "webp",
|
||||
JPG = "jpg",
|
||||
}
|
Loading…
Reference in a new issue