Function isRpcContext

  • Typeguard for rpc context

    Returns

    config is RpcContext

    Type Parameters

    • MS extends MetadataStorage<{
          __meta: "markets";
          categories: undefined | ({ name: string; img?: string | undefined; ticker?: string | undefined; color?: string | undefined; })[];
          confidentialId: undefined | string;
          description: string;
          img: undefined | string;
          question: string;
          scalarType: undefined | "number" | "date";
          slug: string;
          tags: undefined | string[];
      }, MS>

    Parameters

    • Optional ctx: unknown

      unknown

    Returns ctx is RpcContext<MS>

Generated using TypeDoc