aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-08-26 02:34:25 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-26 02:34:25 -0700
commit2a9e967fd1c766a718808d5a7fa779d74d44e62c (patch)
tree3bf4c059c03b9b561bc565ecf7cf21eaceae5353 /packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts
parent910daeff27ead119e15f35f6c1e0aa09d2aa7562 (diff)
downloadbun-2a9e967fd1c766a718808d5a7fa779d74d44e62c.tar.gz
bun-2a9e967fd1c766a718808d5a7fa779d74d44e62c.tar.zst
bun-2a9e967fd1c766a718808d5a7fa779d74d44e62c.zip
More improvements to debugger support (#4345)
* More fixes for dap * More changes * More changes 2 * More fixes * Fix debugger.ts * Bun Terminal
Diffstat (limited to 'packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts')
-rw-r--r--packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts37
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts b/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts
new file mode 100644
index 000000000..bf6f2d810
--- /dev/null
+++ b/packages/bun-debug-adapter-protocol/src/protocol/schema.d.ts
@@ -0,0 +1,37 @@
+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[];
+ }
+);