turbodombuilder - v0.9.48
    Preparing search index...

    Type Alias MakeSubstrateOptions

    Type representing objects used to configure the creation of substrates. Used in makeSubstrate.

    type MakeSubstrateOptions = {
        onActivate?: () => void;
        onDeactivate?: () => void;
        priority?: number;
        active?: boolean;
        attachedInstance?: TurboSubstrate;
    }
    Index

    Properties

    onActivate?: () => void

    Callback function to execute when the substrate is activated.

    onDeactivate?: () => void

    Callback function to execute when the substrate is deactivated.

    priority?: number

    The priority of the substrate. Higher priority substrates (lower number) should be resolved first. Defaults to 10.

    active?: boolean

    Whether the substrate is active. Defaults to true.

    attachedInstance?: TurboSubstrate

    The optional TurboSubstrate instance to attach to the substrate.