{
  "id": "@typed/fx#RefSubject.fromNullable",
  "canonicalId": "@typed/fx/RefSubject#fromNullable",
  "symbol": {
    "id": "@typed/fx#RefSubject.fromNullable",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefSubject.fromNullable",
    "kind": "function",
    "signatures": [
      "export declare function fromNullable<A>(value: A | null | undefined, options?: RefSubjectOptions<Option.Option<NonNullable<A>>>): Effect.Effect<RefSubject<Option.Option<NonNullable<A>>>, never, Scope.Scope>;"
    ],
    "summary": "Creates Option-valued RefSubject state from a nullable input.",
    "sections": {
      "Why": "Converts `null` and `undefined` to `Option.none` and every other value to `Option.some`, then\nstores that Option in a writable RefSubject. It does not create Filtered state or add\n`NoSuchElementError`.",
      "Ownership and lifetime": "Construction requires Scope because it delegates to `make`; it needs no services and cannot\nfail. The returned RefSubject owns and publishes subsequent Option writes."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 1883
    },
    "since": "1.18.0",
    "category": "Source adapters"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefSubject.fromNullable",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefSubject",
    "qualifiedName": "RefSubject.fromNullable",
    "declarationKey": "declaration:a95dab5e0e7db182fbb9036d",
    "family": "function",
    "signatures": [
      "export declare function fromNullable<A>(value: A | null | undefined, options?: RefSubjectOptions<Option.Option<NonNullable<A>>>): Effect.Effect<RefSubject<Option.Option<NonNullable<A>>>, never, Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 1883,
          "column": 1
        },
        "end": {
          "line": 1888,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefSubject#fromNullable"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefSubject",
    "static": false,
    "importedFrom": "declaration:a95dab5e0e7db182fbb9036d"
  },
  "declaration": {
    "declarationKey": "declaration:a95dab5e0e7db182fbb9036d",
    "name": "fromNullable",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function fromNullable<A>(value: A | null | undefined, options?: RefSubjectOptions<Option.Option<NonNullable<A>>>): Effect.Effect<RefSubject<Option.Option<NonNullable<A>>>, never, Scope.Scope>;"
        ],
        "typeParameters": [
          "A"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 1883,
              "column": 1
            },
            "end": {
              "line": 1888,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function fromNullable<A>(value: A | null | undefined, options?: RefSubjectOptions<Option.Option<NonNullable<A>>>): Effect.Effect<RefSubject<Option.Option<NonNullable<A>>>, never, Scope.Scope>;"
    ],
    "typeParameters": [
      "A"
    ],
    "summary": "Creates Option-valued RefSubject state from a nullable input.",
    "sections": {
      "Why": "Converts `null` and `undefined` to `Option.none` and every other value to `Option.some`, then\nstores that Option in a writable RefSubject. It does not create Filtered state or add\n`NoSuchElementError`.",
      "Ownership and lifetime": "Construction requires Scope because it delegates to `make`; it needs no services and cannot\nfail. The returned RefSubject owns and publishes subsequent Option writes."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 1883,
          "column": 1
        },
        "end": {
          "line": 1888,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Source adapters"
  }
}
