Hierarchy

Constructors

Properties

_blocks: DFCodeExportableBlock[] = []

Never use this unless you want to explicitly set the codeblocks array.

_componentName: string = "serializable"

The component's name

author?: string

Template author, defaults to "anonymous".

cuSocket?: WebSocket
name: string | false

Template name, defaults to "untitled".

Accessors

Methods

  • Serialize the object into a readable DiamondFire format.

    Returns

    DiamondFire codeblock object.

    Returns {
        compressed: string;
        sendToCodeutils: (() => Promise<void>);
        serialized: RawDFTemplate;
    }

    • compressed: string
    • Readonly sendToCodeutils: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • serialized: RawDFTemplate

Generated using TypeDoc