Hyperlinkv0.9.0-beta.0

Hyperlink

Hyperlink.SharedTagFactoryinterfacesrc/Hyperlink.ts:3526
<Self>(): {
  <D>(
    key: string,
    options: {
      readonly description?: string
      readonly node?: NodeKey<unknown>
      readonly defaults: DefaultsInput<D>
    }
  ): TagWithDefaults<
    HyperlinkTag<
      Self,
      S,
      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 DefaultMethod<infer F>
          ? F
          : S[K] extends { readonly _tag: "value" }
          ? 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 DefaultMethod<infer F>
                ? F
                : S[K][K] extends { readonly _tag: "value" }
                ? 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 DefaultMethod<infer F>
                      ? F
                      : S[K][K][K] extends { readonly _tag: "value" }
                      ? 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 DefaultMethod<infer F>
                            ? F
                            : S[K][K][K][K] extends {
                                readonly _tag: "value"
                              }
                            ? 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 DefaultMethod<
                                      infer F
                                    >
                                  ? F
                                  : S[K][K][K][K][K] extends {
                                      readonly _tag: "value"
                                    }
                                  ? 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 DefaultMethod<
                                            infer F
                                          >
                                        ? F
                                        : S[K][K][K][K][K][K] extends {
                                            readonly _tag: "value"
                                          }
                                        ? 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 DefaultMethod<
                                                  infer F
                                                >
                                              ? F
                                              : S[K][K][K][K][K][K][K] extends {
                                                  readonly _tag: "value"
                                                }
                                              ? 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 DefaultMethod<
                                                        infer F
                                                      >
                                                    ? F
                                                    : S[K][K][K][K][K][K][K][K] extends {
                                                        readonly _tag: "value"
                                                      }
                                                    ? 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 DefaultMethod<
                                                              infer F
                                                            >
                                                          ? F
                                                          : S[K][K][K][K][K][K][K][K][K] extends {
                                                              readonly _tag: "value"
                                                            }
                                                          ? 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 DefaultMethod<
                                                                    infer F
                                                                  >
                                                                ? F
                                                                : S[K][K][K][K][K][K][K][K][K][K] extends {
                                                                    readonly _tag: "value"
                                                                  }
                                                                ? 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 DefaultMethod<
                                                                          infer F
                                                                        >
                                                                      ? F
                                                                      : S[K][K][K][K][K][K][K][K][K][K][K] extends {
                                                                          readonly _tag: "value"
                                                                        }
                                                                      ? 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
      }>
    >,
    D
  >
  (
    key: string,
    options?: {
      readonly description?: string
      readonly node?: NodeKey<unknown>
    }
  ): HyperlinkTag<
    Self,
    S,
    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 DefaultMethod<infer F>
        ? F
        : S[K] extends { readonly _tag: "value" }
        ? 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 DefaultMethod<infer F>
              ? F
              : S[K][K] extends { readonly _tag: "value" }
              ? 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 DefaultMethod<infer F>
                    ? F
                    : S[K][K][K] extends { readonly _tag: "value" }
                    ? 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 DefaultMethod<infer F>
                          ? F
                          : S[K][K][K][K] extends {
                              readonly _tag: "value"
                            }
                          ? 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 DefaultMethod<
                                    infer F
                                  >
                                ? F
                                : S[K][K][K][K][K] extends {
                                    readonly _tag: "value"
                                  }
                                ? 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 DefaultMethod<
                                          infer F
                                        >
                                      ? F
                                      : S[K][K][K][K][K][K] extends {
                                          readonly _tag: "value"
                                        }
                                      ? 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 DefaultMethod<
                                                infer F
                                              >
                                            ? F
                                            : S[K][K][K][K][K][K][K] extends {
                                                readonly _tag: "value"
                                              }
                                            ? 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 DefaultMethod<
                                                      infer F
                                                    >
                                                  ? F
                                                  : S[K][K][K][K][K][K][K][K] extends {
                                                      readonly _tag: "value"
                                                    }
                                                  ? 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 DefaultMethod<
                                                            infer F
                                                          >
                                                        ? F
                                                        : S[K][K][K][K][K][K][K][K][K] extends {
                                                            readonly _tag: "value"
                                                          }
                                                        ? 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 DefaultMethod<
                                                                  infer F
                                                                >
                                                              ? F
                                                              : S[K][K][K][K][K][K][K][K][K][K] extends {
                                                                  readonly _tag: "value"
                                                                }
                                                              ? 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 DefaultMethod<
                                                                        infer F
                                                                      >
                                                                    ? F
                                                                    : S[K][K][K][K][K][K][K][K][K][K][K] extends {
                                                                        readonly _tag: "value"
                                                                      }
                                                                    ? 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
    }>
  >
}

Shared-Spec factory from Tag(wireKey, spec). Mint instances with the Effect-shaped double call: Factory<Self>()(instanceKey).

modelsTag
Source src/Hyperlink.ts:352626 lines
export interface SharedTagFactory<S extends Spec> {
  <Self>(): {
    <const D extends DefaultsBag>(
      key: string,
      options: {
        readonly description?: string;
        readonly node?: NodeKey<unknown>;
        readonly defaults: DefaultsInput<D>;
      },
    ): TagWithDefaults<HyperlinkTag<Self, S>, D>;
    (
      key: string,
      options?: {
        readonly description?: string;
        readonly node?: NodeKey<unknown>;
      },
    ): HyperlinkTag<Self, S>;
  };
  /** Wire / kind key — RpcGroup prefix for every instance. */
  readonly wireKey: string;
  readonly kind: string;
  readonly description: string | undefined;
  readonly [specSym]: FlatSpec;
  readonly [specTypeSym]?: S;
  readonly [groupSym]: RpcGroupOf<S>;
}
Referenced by 1 symbols