31 lines
570 B
TypeScript
31 lines
570 B
TypeScript
import type { Owner } from "@/types/cfg"
|
|
|
|
export interface XBase {
|
|
name: string
|
|
value: string
|
|
default: string
|
|
info: string
|
|
}
|
|
|
|
export type Key = XBase
|
|
export type Alias = XBase
|
|
export interface Value extends XBase {
|
|
option: { name: string; value: string }[]
|
|
}
|
|
|
|
// 转换方法 [[key=${name}]] | [[alias=${name}]] | [[value=${name}]] -> value
|
|
export interface XItem {
|
|
version: string
|
|
creater: string
|
|
key: Key[]
|
|
alias: Alias[]
|
|
value: Value[]
|
|
comment: string
|
|
content: string
|
|
}
|
|
|
|
export interface CfgX extends Owner {
|
|
note: string
|
|
items: XItem[]
|
|
}
|