Sanity Library Reference Docs
    Preparing search index...

    Type Alias View<Options>Beta

    View: {
        [Type in Exclude<ApplicationInterface["type"], "worker">]: Omit<
            InterfaceOf<Type>,
            "type",
        > & { surface: Type extends "app" ? "window" : Type } & MaybeApplication<
            Options,
        >
    }[Exclude<ApplicationInterface["type"], "worker">]

    A view exposed by an application or installation: an interface record with its type as surface, where app is window. Every interface type except worker is a view.

    Type Parameters

    • Options extends ViewOptions = { includeApplication: true }