mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 01:39:06 +01:00
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; }
|