Sanity Library Reference Docs
    Preparing search index...

    Type Alias UnresolvedSingletonDefinitionBeta

    UnresolvedSingletonDefinition:
        | Omit<SingletonDefinition, "id"> & { id?: string }
        | string

    A singleton definition as provided by the developer.

    Type declaration

    • Omit<SingletonDefinition, "id"> & { id?: string }
      • Optionalid?: string

        The singleton definition id. Optional: inherits the definition's documentId if omitted. Set it explicitly to be verbose, to guard against future collisions, or to address a singleton universally when different workspaces or environments map it to different document ids.

    • string