@sqlrooms/artifacts / UseArtifactWorkspaceOptions
Type Alias: UseArtifactWorkspaceOptions
UseArtifactWorkspaceOptions =
object
Options for useArtifactWorkspace.
Properties
types?
optionaltypes?: readonlystring[]
Optional artifact type allowlist managed by this workspace.
When omitted, the workspace manages every artifact type registered in the room's artifacts slice.
selectFallback?
optionalselectFallback?:ArtifactWorkspaceSelectFallback
Selection behavior when the persisted current artifact is missing or not managed by this workspace.
Defaults to first, which selects the first managed artifact and clears the current artifact when no managed artifact exists.
