Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.unsafeEffectfunctionsrc/Hyperlink.ts:989
<Client = Derive>(): <Su extends Schema.Top>(
  success: Su
) => Method<
  undefined,
  Su,
  typeof Schema.Never,
  false,
  MethodAnnotations,
  Client
>

Two-stage effect that lets you override the client-facing type with an unconstrained Client — here an Effect type (a read surfaces as Effect<Success>, not a function): unsafeEffect<Client>()(success). The wire/impl stay schema-derived; only what yield* Tag reads is replaced by Client. Unsafe: Client is not checked against the schema — you assert it matches. For a narrowing (checked) read override, use the two-stage effect form instead.

spec fieldseffect
Source src/Hyperlink.ts:98913 lines
export function unsafeEffect<Client = Derive>() {
  return <Su extends Schema.Top>(
    success: Su,
  ): Method<undefined, Su, typeof Schema.Never, false, MethodAnnotations, Client> =>
    makeMethod<undefined, Su, typeof Schema.Never, false, MethodAnnotations, Client>(
      "query",
      undefined,
      success,
      Schema.Never,
      false,
      {},
    );
}