Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.NodeTagFactoryinterfacesrc/Hyperlink.ts:3070
<Self>(key: string): NodeBoundTag<
  Self,
  S,
  HSelf,
  Simplify<{
    readonly [K in keyof S]: S[K] extends FromLocalMethod<infer M>
      ? InjectLocal<M, Self>
      : S[K] extends LocalMethod<infer T>
      ? LocalEffect<T, never, Self>
      : S[K] extends { readonly _tag: "constant" }
      ? SuccessOf<AsMethod<S[K]>>
      : S[K] extends { readonly _tag: "ref" }
      ? Subscribable<SuccessOf<AsMethod<S[K]>>>
      : S[K] extends { readonly kind: MethodKind }
      ? ClientMethod<AsMethod<S[K]>, ClientOverrideOf<S[K]>>
      : S[K] extends Spec
      ? Simplify<{
          readonly [K in keyof S[K]]: S[K][K] extends FromLocalMethod<
            infer M
          >
            ? InjectLocal<M, Self>
            : S[K][K] extends LocalMethod<infer T>
            ? LocalEffect<T, never, Self>
            : S[K][K] extends { readonly _tag: "constant" }
            ? SuccessOf<AsMethod<S[K][K]>>
            : S[K][K] extends { readonly _tag: "ref" }
            ? Subscribable<SuccessOf<AsMethod<S[K][K]>>>
            : S[K][K] extends { readonly kind: MethodKind }
            ? ClientMethod<AsMethod<S[K][K]>, ClientOverrideOf<S[K][K]>>
            : S[K][K] extends Spec
            ? Simplify<{
                readonly [K in keyof S[K][K]]: S[K][K][K] extends FromLocalMethod<
                  infer M
                >
                  ? InjectLocal<M, Self>
                  : S[K][K][K] extends LocalMethod<infer T>
                  ? LocalEffect<T, never, Self>
                  : S[K][K][K] extends { readonly _tag: "constant" }
                  ? SuccessOf<AsMethod<S[K][K][K]>>
                  : S[K][K][K] extends { readonly _tag: "ref" }
                  ? Subscribable<SuccessOf<AsMethod<S[K][K][K]>>>
                  : S[K][K][K] extends { readonly kind: MethodKind }
                  ? ClientMethod<
                      AsMethod<S[K][K][K]>,
                      ClientOverrideOf<S[K][K][K]>
                    >
                  : S[K][K][K] extends Spec
                  ? Simplify<{
                      readonly [K in keyof S[K][K][K]]: S[K][K][K][K] extends FromLocalMethod<
                        infer M
                      >
                        ? InjectLocal<M, Self>
                        : S[K][K][K][K] extends LocalMethod<infer T>
                        ? LocalEffect<T, never, Self>
                        : S[K][K][K][K] extends {
                            readonly _tag: "constant"
                          }
                        ? SuccessOf<AsMethod<S[K][K][K][K]>>
                        : S[K][K][K][K] extends { readonly _tag: "ref" }
                        ? Subscribable<SuccessOf<AsMethod<S[K][K][K][K]>>>
                        : S[K][K][K][K] extends {
                            readonly kind: MethodKind
                          }
                        ? ClientMethod<
                            AsMethod<S[K][K][K][K]>,
                            ClientOverrideOf<S[K][K][K][K]>
                          >
                        : S[K][K][K][K] extends Spec
                        ? Simplify<{
                            readonly [K in keyof S[K][K][K][K]]: S[K][K][K][K][K] extends FromLocalMethod<
                              infer M
                            >
                              ? InjectLocal<M, Self>
                              : S[K][K][K][K][K] extends LocalMethod<
                                  infer T
                                >
                              ? LocalEffect<T, never, Self>
                              : S[K][K][K][K][K] extends {
                                  readonly _tag: "constant"
                                }
                              ? SuccessOf<AsMethod<S[K][K][K][K][K]>>
                              : S[K][K][K][K][K] extends {
                                  readonly _tag: "ref"
                                }
                              ? Subscribable<
                                  SuccessOf<AsMethod<S[K][K][K][K][K]>>
                                >
                              : S[K][K][K][K][K] extends {
                                  readonly kind: MethodKind
                                }
                              ? ClientMethod<
                                  AsMethod<S[K][K][K][K][K]>,
                                  ClientOverrideOf<S[K][K][K][K][K]>
                                >
                              : S[K][K][K][K][K] extends Spec
                              ? Simplify<{
                                  readonly [K in keyof S[K][K][K][K][K]]: S[K][K][K][K][K][K] extends FromLocalMethod<
                                    infer M
                                  >
                                    ? InjectLocal<M, Self>
                                    : S[K][K][K][K][K][K] extends LocalMethod<
                                        infer T
                                      >
                                    ? LocalEffect<T, never, Self>
                                    : S[K][K][K][K][K][K] extends {
                                        readonly _tag: "constant"
                                      }
                                    ? SuccessOf<
                                        AsMethod<S[K][K][K][K][K][K]>
                                      >
                                    : S[K][K][K][K][K][K] extends {
                                        readonly _tag: "ref"
                                      }
                                    ? Subscribable<
                                        SuccessOf<
                                          AsMethod<S[K][K][K][K][K][K]>
                                        >
                                      >
                                    : S[K][K][K][K][K][K] extends {
                                        readonly kind: MethodKind
                                      }
                                    ? ClientMethod<
                                        AsMethod<S[K][K][K][K][K][K]>,
                                        ClientOverrideOf<
                                          S[K][K][K][K][K][K]
                                        >
                                      >
                                    : S[K][K][K][K][K][K] extends Spec
                                    ? Simplify<{
                                        readonly [K in keyof S[K][K][K][K][K][K]]: S[K][K][K][K][K][K][K] extends FromLocalMethod<
                                          infer M
                                        >
                                          ? InjectLocal<M, Self>
                                          : S[K][K][K][K][K][K][K] extends LocalMethod<
                                              infer T
                                            >
                                          ? LocalEffect<T, never, Self>
                                          : S[K][K][K][K][K][K][K] extends {
                                              readonly _tag: "constant"
                                            }
                                          ? SuccessOf<
                                              AsMethod<
                                                S[K][K][K][K][K][K][K]
                                              >
                                            >
                                          : S[K][K][K][K][K][K][K] extends {
                                              readonly _tag: "ref"
                                            }
                                          ? Subscribable<
                                              SuccessOf<
                                                AsMethod<
                                                  S[K][K][K][K][K][K][K]
                                                >
                                              >
                                            >
                                          : S[K][K][K][K][K][K][K] extends {
                                              readonly kind: MethodKind
                                            }
                                          ? ClientMethod<
                                              AsMethod<
                                                S[K][K][K][K][K][K][K]
                                              >,
                                              ClientOverrideOf<
                                                S[K][K][K][K][K][K][K]
                                              >
                                            >
                                          : S[K][K][K][K][K][K][K] extends Spec
                                          ? Simplify<{
                                              readonly [K in keyof S[K][K][K][K][K][K][K]]: S[K][K][K][K][K][K][K][K] extends FromLocalMethod<
                                                infer M
                                              >
                                                ? InjectLocal<M, Self>
                                                : S[K][K][K][K][K][K][K][K] extends LocalMethod<
                                                    infer T
                                                  >
                                                ? LocalEffect<
                                                    T,
                                                    never,
                                                    Self
                                                  >
                                                : S[K][K][K][K][K][K][K][K] extends {
                                                    readonly _tag: "constant"
                                                  }
                                                ? SuccessOf<
                                                    AsMethod<
                                                      S[K][K][K][K][K][K][K][K]
                                                    >
                                                  >
                                                : S[K][K][K][K][K][K][K][K] extends {
                                                    readonly _tag: "ref"
                                                  }
                                                ? Subscribable<
                                                    SuccessOf<
                                                      AsMethod<
                                                        S[K][K][K][K][K][K][K][K]
                                                      >
                                                    >
                                                  >
                                                : S[K][K][K][K][K][K][K][K] extends {
                                                    readonly kind: MethodKind
                                                  }
                                                ? ClientMethod<
                                                    AsMethod<
                                                      S[K][K][K][K][K][K][K][K]
                                                    >,
                                                    ClientOverrideOf<
                                                      S[K][K][K][K][K][K][K][K]
                                                    >
                                                  >
                                                : S[K][K][K][K][K][K][K][K] extends Spec
                                                ? Simplify<{
                                                    readonly [K in keyof S[K][K][K][K][K][K][K][K]]: S[K][K][K][K][K][K][K][K][K] extends FromLocalMethod<
                                                      infer M
                                                    >
                                                      ? InjectLocal<
                                                          M,
                                                          Self
                                                        >
                                                      : S[K][K][K][K][K][K][K][K][K] extends LocalMethod<
                                                          infer T
                                                        >
                                                      ? LocalEffect<
                                                          T,
                                                          never,
                                                          Self
                                                        >
                                                      : S[K][K][K][K][K][K][K][K][K] extends {
                                                          readonly _tag: "constant"
                                                        }
                                                      ? SuccessOf<
                                                          AsMethod<
                                                            S[K][K][K][K][K][K][K][K][K]
                                                          >
                                                        >
                                                      : S[K][K][K][K][K][K][K][K][K] extends {
                                                          readonly _tag: "ref"
                                                        }
                                                      ? Subscribable<
                                                          SuccessOf<
                                                            AsMethod<
                                                              S[K][K][K][K][K][K][K][K][K]
                                                            >
                                                          >
                                                        >
                                                      : S[K][K][K][K][K][K][K][K][K] extends {
                                                          readonly kind: MethodKind
                                                        }
                                                      ? ClientMethod<
                                                          AsMethod<
                                                            S[K][K][K][K][K][K][K][K][K]
                                                          >,
                                                          ClientOverrideOf<
                                                            S[K][K][K][K][K][K][K][K][K]
                                                          >
                                                        >
                                                      : S[K][K][K][K][K][K][K][K][K] extends Spec
                                                      ? Simplify<{
                                                          readonly [K in keyof S[K][K][K][K][K][K][K][K][K]]: S[K][K][K][K][K][K][K][K][K][K] extends FromLocalMethod<
                                                            infer M
                                                          >
                                                            ? InjectLocal<
                                                                M,
                                                                Self
                                                              >
                                                            : S[K][K][K][K][K][K][K][K][K][K] extends LocalMethod<
                                                                infer T
                                                              >
                                                            ? LocalEffect<
                                                                T,
                                                                never,
                                                                Self
                                                              >
                                                            : S[K][K][K][K][K][K][K][K][K][K] extends {
                                                                readonly _tag: "constant"
                                                              }
                                                            ? SuccessOf<
                                                                AsMethod<
                                                                  S[K][K][K][K][K][K][K][K][K][K]
                                                                >
                                                              >
                                                            : S[K][K][K][K][K][K][K][K][K][K] extends {
                                                                readonly _tag: "ref"
                                                              }
                                                            ? Subscribable<
                                                                SuccessOf<
                                                                  AsMethod<
                                                                    S[K][K][K][K][K][K][K][K][K][K]
                                                                  >
                                                                >
                                                              >
                                                            : S[K][K][K][K][K][K][K][K][K][K] extends {
                                                                readonly kind: MethodKind
                                                              }
                                                            ? ClientMethod<
                                                                AsMethod<
                                                                  S[K][K][K][K][K][K][K][K][K][K]
                                                                >,
                                                                ClientOverrideOf<
                                                                  S[K][K][K][K][K][K][K][K][K][K]
                                                                >
                                                              >
                                                            : S[K][K][K][K][K][K][K][K][K][K] extends Spec
                                                            ? Simplify<{
                                                                readonly [K in keyof S[K][K][K][K][K][K][K][K][K][K]]: S[K][K][K][K][K][K][K][K][K][K][K] extends FromLocalMethod<
                                                                  infer M
                                                                >
                                                                  ? InjectLocal<
                                                                      M,
                                                                      Self
                                                                    >
                                                                  : S[K][K][K][K][K][K][K][K][K][K][K] extends LocalMethod<
                                                                      infer T
                                                                    >
                                                                  ? LocalEffect<
                                                                      T,
                                                                      never,
                                                                      Self
                                                                    >
                                                                  : S[K][K][K][K][K][K][K][K][K][K][K] extends {
                                                                      readonly _tag: "constant"
                                                                    }
                                                                  ? SuccessOf<
                                                                      AsMethod<
                                                                        S[K][K][K][K][K][K][K][K][K][K][K]
                                                                      >
                                                                    >
                                                                  : S[K][K][K][K][K][K][K][K][K][K][K] extends {
                                                                      readonly _tag: "ref"
                                                                    }
                                                                  ? Subscribable<
                                                                      SuccessOf<
                                                                        AsMethod<
                                                                          S[K][K][K][K][K][K][K][K][K][K][K]
                                                                        >
                                                                      >
                                                                    >
                                                                  : S[K][K][K][K][K][K][K][K][K][K][K] extends {
                                                                      readonly kind: MethodKind
                                                                    }
                                                                  ? ClientMethod<
                                                                      AsMethod<
                                                                        S[K][K][K][K][K][K][K][K][K][K][K]
                                                                      >,
                                                                      ClientOverrideOf<
                                                                        S[K][K][K][K][K][K][K][K][K][K][K]
                                                                      >
                                                                    >
                                                                  : S[K][K][K][K][K][K][K][K][K][K][K] extends Spec
                                                                  ? Simplify<any>
                                                                  : never
                                                              }>
                                                            : never
                                                        }>
                                                      : never
                                                  }>
                                                : never
                                            }>
                                          : never
                                      }>
                                    : never
                                }>
                              : never
                          }>
                        : never
                    }>
                  : never
              }>
            : never
        }>
      : never
  }>
>

A node-bearing tagFor factory: every instance it makes carries the family's Node, so each is a node-bearing tag (Hyperlink.client resolves the transport from it). Otherwise identical to TagFactory.

modelstagForNodeHyperlink.clientTagFactory
Source src/Hyperlink.ts:30708 lines
export interface NodeTagFactory<S extends Spec, HSelf> {
  <Self>(key: string): NodeBoundTag<Self, S, HSelf>;
  readonly groupId: string;
  readonly description: string | undefined;
  readonly [specSym]: FlatSpec;
  readonly [specTypeSym]?: S;
  readonly [groupSym]: RpcGroupOf<S>;
}
Referenced by 1 symbols