Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Specify block type format

Tomas Valenta0183f82873d3
diff --git a/state/store.ts b/state/store.ts
index cfadcbee3..e933fae99 100644
--- a/state/store.ts
+++ b/state/store.ts
@@ -8,7 +8,13 @@ import { projects, Prisma } from '@prisma/client'
import { Database } from 'db/supabase'
import { projectsTable } from 'db/tables'
-export type BlockType = 'Basic' | 'RequestBody' | 'StructuredProse'
+export type BlockType =
+ // Raw text
+ 'Basic' |
+ // Code that looks like TypeScript interface definition without the outer parenthesses.
+ 'RequestBody' |
+ // ProseMirror XML
+ 'StructuredProse'
export interface Block {
id: string