"scratchpad" spaces.svelte.ts
Declarations #
5 declarations
SCRATCHPAD_NAME #
SCRATCHPAD_NAME
Spaces #
Spaces
inheritance
extends:
Cell<typeof SpacesJson>
items
type IndexedCollection<Space>
readonly
active_id
type Uuid | null
active
type Space | undefined
readonly
scratchpad
type Space | undefined
readonly
constructor
type new (options: SpacesOptions): Spaces
options
type SpacesOptions
ensure_scratchpad
type (): Space
returns Space
add
type (json?: { id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; directory_paths?: string[] | undefined; } | undefined): Space
json?
type
{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; directory_paths?: string[] | undefined; } | undefinedoptional
returns Space
generate_unique_name
type (base_name?: string): string
base_name
type
string default
'new space'returns
stringremove
type (id: string & $brand<"Uuid">): void
id
type
string & $brand<"Uuid">returns
voidactivate
type (id: string & $brand<"Uuid">): void
id
type
string & $brand<"Uuid">returns
voidSpacesJson #
SpacesJson
ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid", "out">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime", "out">>; updated: ZodDefault<...>; items: ZodDefault<...>; active_id: ZodDefault<...>; }, $strict> SpacesJsonInput #
SpacesJsonInput
{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; items?: { id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; directory_paths?: string[] | undefined; }[] | undefined; active_id?: string | ... 1 more ... | undefined; } SpacesOptions #
SpacesOptions
SpacesOptions inheritance
extends:
CellOptions<typeof SpacesJson>