1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-04 17:02:09 -06:00
paricafe/src/misc/simple-schema.ts

16 lines
369 B
TypeScript
Raw Normal View History

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; }