UNPKG

@selenite/graph-editor

Version:

A graph editor for visual programming, based on rete and svelte.

28 lines (27 loc) 869 B
import type { GraphEditorData$result } from '../../../$houdini'; import type { GeosTypesTree } from '../backend-interaction'; import type { Writable } from 'svelte/store'; export type GeosDataContext = { typesTree: Writable<GeosTypesTree | undefined>; typesPaths: Writable<Record<string, string[]> | undefined>; xmlSchema: Writable<GraphEditorData$result['geos']['xmlSchema'] | undefined>; }; export type GeosSchema = { simpleTypes: Map<string, { enum: string[] | null; name: string; pattern: string; }>; complexTypes: Map<string, { name: string; link: string; attributes: Map<string, { name: string; type: string; default: string | undefined; description: string; required: boolean; }>; childTypes: string[]; }>; };