The Graffiti.discover method as a reactive renderless component for use in Vue templates.

Its props and slots are identical to the arguments and return values of the composable useGraffitiDiscover.

  • Type Parameters

    • Schema extends JSONSchema

    Parameters

    • __VLS_props: { channels: string[]; schema: Schema; session?: null | GraffitiSession } & VNodeProps & AllowedComponentProps & ComponentCustomProps
    • Optional__VLS_ctx: {
          attrs: any;
          emit: {};
          slots: Readonly<
              {
                  default(
                      props: {
                          isPolling: boolean;
                          poll: () => void;
                          results: GraffitiObject<Schema>[];
                      },
                  ): any;
              },
          > & {
              default(
                  props: {
                      isPolling: boolean;
                      poll: () => void;
                      results: GraffitiObject<Schema>[];
                  },
              ): any;
          };
      }
    • Optional__VLS_expose: (exposed: ShallowUnwrapRef<{}>) => void
    • Optional__VLS_setup: Promise<
          {
              attrs: any;
              emit: {};
              props: {
                  channels: string[];
                  schema: Schema;
                  session?: null
                  | GraffitiSession;
              } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
              slots: Readonly<
                  {
                      default(
                          props: {
                              isPolling: boolean;
                              poll: () => void;
                              results: GraffitiObject<Schema>[];
                          },
                      ): any;
                  },
              > & {
                  default(
                      props: {
                          isPolling: boolean;
                          poll: () => void;
                          results: GraffitiObject<Schema>[];
                      },
                  ): any;
              };
              expose(exposed: ShallowUnwrapRef<{}>): void;
          },
      >

    Returns VNode<RendererNode, RendererElement, { [key: string]: any }> & {
        __ctx?: {
            attrs: any;
            emit: {};
            props: {
                channels: string[];
                schema: Schema;
                session?: null | GraffitiSession;
            } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
            slots: Readonly<
                {
                    default(
                        props: {
                            isPolling: boolean;
                            poll: () => void;
                            results: GraffitiObject<Schema>[];
                        },
                    ): any;
                },
            > & {
                default(
                    props: {
                        isPolling: boolean;
                        poll: () => void;
                        results: GraffitiObject<Schema>[];
                    },
                ): any;
            };
            expose(exposed: ShallowUnwrapRef<{}>): void;
        };
    }