mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
* More fixes for dap * More changes * More changes 2 * More fixes * Fix debugger.ts * Bun Terminal
38 lines
615 B
TypeScript
38 lines
615 B
TypeScript
export type Protocol = {
|
|
$schema: string;
|
|
title: string;
|
|
description: string;
|
|
type: "object";
|
|
definitions: Record<string, Type>;
|
|
};
|
|
|
|
export type Type = {
|
|
description?: string;
|
|
} & (
|
|
| {
|
|
type: "number" | "integer" | "boolean";
|
|
}
|
|
| {
|
|
type: "string";
|
|
enum?: string[];
|
|
enumDescriptions?: string[];
|
|
}
|
|
| {
|
|
type: "object";
|
|
properties?: Record<string, Type>;
|
|
required?: string[];
|
|
}
|
|
| {
|
|
type: "array";
|
|
items?: Type;
|
|
}
|
|
| {
|
|
type?: undefined;
|
|
$ref: string;
|
|
}
|
|
| {
|
|
type?: undefined;
|
|
allOf: Type[];
|
|
}
|
|
);
|