forked from mirror/misskey
0e4a111f81
Resolve #7779
16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
export interface SimpleSchema {
|
|
type: 'boolean' | 'number' | 'string' | 'array' | 'object' | 'any';
|
|
nullable: boolean;
|
|
optional: boolean;
|
|
items?: SimpleSchema;
|
|
properties?: SimpleObj;
|
|
description?: string;
|
|
example?: any;
|
|
format?: string;
|
|
ref?: string;
|
|
enum?: string[];
|
|
default?: boolean | null;
|
|
}
|
|
|
|
export interface SimpleObj { [key: string]: SimpleSchema; }
|