Creating Plot Twists
    Preparing search index...

    Type Alias NewFocus

    NewFocus: Pick<Focus, "title"> & Partial<Omit<Focus, "id" | "title">> & (
        { id: Uuid }
        | { key: string }
        | {}
    )

    Type for creating new focuses.

    Supports multiple creation patterns:

    • Provide a specific UUID for the focus
    • Provide a key for upsert within the user's focuses
    • Omit both to auto-generate a new UUID

    Type Declaration

    • { id: Uuid }
      • id: Uuid

        Unique identifier for the focus, generated by Uuid.Generate(). Specifying an ID allows tools to track and upsert focuses.

    • { key: string }
      • key: string

        Unique key for the focus within the user's focuses. Can be used to upsert without knowing the UUID. For example, "@plot" identifies the Plot focus.

    • {}