Sanity Library Reference Docs
    Preparing search index...

    Type Alias ApplicationInterface

    ApplicationInterface: ApplicationInterfaceBase & (
        | { metadata: { dock?: Dock; icon?: string }
        | null; type: "app" }
        | {
            metadata: { dock?: Pick<Dock, "order">; icon?: string } | null;
            type: "panel";
        }
        | { metadata: null; type: "asset_source" }
        | { metadata: null; type: "worker" }
        | {
            metadata: { order?: number; size: "small" | "large" | "banner" };
            type: "tile";
        }
    )

    An interface exposed by a deployment, embedded when interfaces is included.

    Type declaration

    • { metadata: { dock?: Dock; icon?: string } | null; type: "app" }
      • metadata: { dock?: Dock; icon?: string } | null

        icon is a cdn.sanity.io URL that overrides the application icon in the dock.

      • type: "app"
    • {
          metadata: { dock?: Pick<Dock, "order">; icon?: string } | null;
          type: "panel";
      }
      • metadata: { dock?: Pick<Dock, "order">; icon?: string } | null

        icon is a cdn.sanity.io URL that overrides the application icon in the dock.

      • type: "panel"
    • { metadata: null; type: "asset_source" }
    • { metadata: null; type: "worker" }
    • {
          metadata: { order?: number; size: "small" | "large" | "banner" };
          type: "tile";
      }