echoes/frontend/common/serializableType.ts
2024-11-27 19:52:49 +08:00

21 lines
353 B
TypeScript

export type Serializable =
| null
| number
| string
| boolean
| { [key: string]: Serializable }
| Array<Serializable>;
export interface Configuration {
[key: string]: {
title: string;
description?: string;
data: Serializable;
};
}
export interface PathDescription {
path: string;
name: string;
description?: string;
}