{
  "id": "@typed/fx#Sink.make",
  "canonicalId": "@typed/fx/Sink#make",
  "symbol": {
    "id": "@typed/fx#Sink.make",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Sink.make",
    "kind": "function",
    "signatures": [
      "export declare function make<A, E = never, R = never, R2 = R>(onFailure: (cause: Cause.Cause<E>) => Effect<unknown, never, R>, onSuccess: (value: A) => Effect<unknown, never, R2>): Sink<A, E, R | R2>;"
    ],
    "summary": "Creates a Sink from success and failure callbacks.",
    "sections": {
      "Why": "`make` is the smallest adapter from ordinary Effect programs to an `Fx` consumer.",
      "Ownership and lifetime": "Construction is pure and acquires nothing. Callback ordering and concurrency belong to the\ninvoking producer; this adapter adds no queue. Callbacks are interrupted with their delivery\nowners. Requirements from both callbacks are combined in the returned\nsink; callback defects remain defects, while typed producer failures arrive through `onFailure`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst sink = Sink.make(Effect.logError, (value: number) => Effect.log(value))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Sink/Sink.ts",
      "line": 309
    },
    "since": "1.0.0",
    "category": "Sink construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Sink.make",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Sink",
    "qualifiedName": "Sink.make",
    "declarationKey": "declaration:7e10aa8fa59d18cdb2c333ba",
    "family": "function",
    "signatures": [
      "export declare function make<A, E = never, R = never, R2 = R>(onFailure: (cause: Cause.Cause<E>) => Effect<unknown, never, R>, onSuccess: (value: A) => Effect<unknown, never, R2>): Sink<A, E, R | R2>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 309,
          "column": 1
        },
        "end": {
          "line": 317,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/Sink#make"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Sink",
    "static": false,
    "importedFrom": "declaration:7e10aa8fa59d18cdb2c333ba"
  },
  "declaration": {
    "declarationKey": "declaration:7e10aa8fa59d18cdb2c333ba",
    "name": "make",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function make<A, E = never, R = never, R2 = R>(onFailure: (cause: Cause.Cause<E>) => Effect<unknown, never, R>, onSuccess: (value: A) => Effect<unknown, never, R2>): Sink<A, E, R | R2>;"
        ],
        "typeParameters": [
          "A",
          "E = never",
          "R = never",
          "R2 = R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Sink/Sink.ts",
            "start": {
              "line": 309,
              "column": 1
            },
            "end": {
              "line": 317,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function make<A, E = never, R = never, R2 = R>(onFailure: (cause: Cause.Cause<E>) => Effect<unknown, never, R>, onSuccess: (value: A) => Effect<unknown, never, R2>): Sink<A, E, R | R2>;"
    ],
    "typeParameters": [
      "A",
      "E = never",
      "R = never",
      "R2 = R"
    ],
    "summary": "Creates a Sink from success and failure callbacks.",
    "sections": {
      "Why": "`make` is the smallest adapter from ordinary Effect programs to an `Fx` consumer.",
      "Ownership and lifetime": "Construction is pure and acquires nothing. Callback ordering and concurrency belong to the\ninvoking producer; this adapter adds no queue. Callbacks are interrupted with their delivery\nowners. Requirements from both callbacks are combined in the returned\nsink; callback defects remain defects, while typed producer failures arrive through `onFailure`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Sink from \"@typed/fx/Sink\"\n\nconst sink = Sink.make(Effect.logError, (value: number) => Effect.log(value))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 309,
          "column": 1
        },
        "end": {
          "line": 317,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Sink construction"
  }
}
