Skip to content

project.object.shape

3 functions / 0 types

Index

FunctionDescription
getGet the ProjectShapeSchema of the given ProjectNodeSchema if one exists
removeRemove the ProjectShapeSchema of the given ProjectNodeSchema if one exists
setAdd a ProjectShapeSchema to the given ProjectNodeSchema

get

get(args: { node: ProjectObjectProjectNode }, transactionId?: string): Promise<ProjectObjectProjectShape | undefined>

Get the ProjectShapeSchema of the given ProjectNodeSchema if one exists

Returns Promise<ProjectObjectProjectShape | undefined>.

node : ProjectObjectProjectNode

ProjectNodeSchema to get the ProjectShapeSchema of

transactionId optional : string

remove

remove(args: { node: ProjectObjectProjectNode }, transactionId?: string): Promise<ProjectObjectProjectShape | undefined>

Remove the ProjectShapeSchema of the given ProjectNodeSchema if one exists

Returns the old ProjectShapeSchema if available

Returns Promise<ProjectObjectProjectShape | undefined>.

node : ProjectObjectProjectNode

ProjectNodeSchema to remove the ProjectShapeSchema of

transactionId optional : string

set

set(args: { node: ProjectObjectProjectNode; shape: ProjectObjectProjectShape }, transactionId?: string): Promise<void>

Add a ProjectShapeSchema to the given ProjectNodeSchema

Returns Promise<void>.

node : ProjectObjectProjectNode

ProjectNodeSchema to change the ProjectShapeSchema of

shape : ProjectObjectProjectShape

The new ProjectShapeSchema

transactionId optional : string