spaces.svelte.ts

Declarations
#

5 declarations

view source

SCRATCHPAD_NAME
#

Spaces
#

spaces.svelte.ts view source

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

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; } | undefined
optional
returns Space

generate_unique_name

type (base_name?: string): string

base_name
type string
default 'new space'
returns string

remove

type (id: string & $brand<"Uuid">): void

id
type string & $brand<"Uuid">
returns void

activate

type (id: string & $brand<"Uuid">): void

id
type string & $brand<"Uuid">
returns void

SpacesJson
#

spaces.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid", "out">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime", "out">>; updated: ZodDefault<...>; items: ZodDefault<...>; active_id: ZodDefault<...>; }, $strict>

SpacesJsonInput
#

spaces.svelte.ts view source

{ 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
#

Depends on
#

Imported by
#