@sqlrooms/artifacts / ArtifactsSliceState
Type Alias: ArtifactsSliceState
ArtifactsSliceState =
object
Properties
artifacts
artifacts:
SliceFunctions&object
Type Declaration
| Name | Type | Description |
|---|---|---|
config | ArtifactsSliceConfig | - |
artifactTypes | ArtifactTypeDefinitions<any> | - |
setConfig() | (config) => void | - |
createArtifact() | (artifact) => string | - |
ensureArtifact() | (id, artifact) => void | - |
renameArtifact() | (id, title) => void | - |
closeArtifact() | (id) => void | - |
deleteArtifact() | (id) => void | - |
setCurrentArtifact() | (id?) => void | - |
setArtifactOrder() | (artifactOrder) => void | - |
togglePinArtifact() | (id) => void | Pins an artifact when unpinned, or unpins it when already pinned. |
isPinnedArtifact() | (id) => boolean | Returns whether an artifact is pinned in the workspace. |
getArtifact() | (id) => ArtifactMetadata | undefined | - |