mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
15
web/app/lib/schema/master/force-graph.ts
Normal file
15
web/app/lib/schema/master/force-graph.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { co, CoList, CoMap } from "jazz-tools"
|
||||
|
||||
export class Connection extends CoMap {
|
||||
name = co.string
|
||||
}
|
||||
|
||||
export class ListOfConnections extends CoList.Of(co.ref(Connection)) {}
|
||||
|
||||
export class ForceGraph extends CoMap {
|
||||
name = co.string
|
||||
prettyName = co.string
|
||||
connections = co.optional.ref(ListOfConnections)
|
||||
}
|
||||
|
||||
export class ListOfForceGraphs extends CoList.Of(co.ref(ForceGraph)) {}
|
||||
Reference in New Issue
Block a user