proposit-core
    Preparing search index...

    Interface TForkArgumentOptions

    Options for forkArgument.

    interface TForkArgumentOptions {
        behavior?: "assistive" | "permissive";
        checksumConfig?: TCoreChecksumConfig;
        generateId?: () => string;
        positionConfig?: TCorePositionConfig;
    }
    Index

    Properties

    behavior?: "assistive" | "permissive"

    Behavior override for the forked engine. If omitted, the forked engine inherits the source engine's current behavior setting (the principle of least surprise — a permissive source forks into a permissive copy, an assistive source forks into an assistive copy). Supplying this option overrides the inheritance — useful for callers that want, for example, to fork a permissive editing state into an assistive "publish-ready" copy.

    1.0.0

    checksumConfig?: TCoreChecksumConfig

    Checksum config override. If omitted, copied from source engine.

    generateId?: () => string

    ID generator for new entities. Defaults to crypto.randomUUID.

    positionConfig?: TCorePositionConfig

    Position config override. If omitted, copied from source engine.