{
  "id": "@typed/ui/Collection#unregister",
  "canonicalId": "@typed/ui/Collection#unregister",
  "symbol": {
    "id": "@typed/ui/Collection#unregister",
    "packageName": "@typed/ui",
    "moduleName": "Collection",
    "exportName": "unregister",
    "kind": "function",
    "signatures": [
      "export declare function unregister<Value, Element extends object, E, R>(collection: RefSubject.RefSubject<State<Value, Element>, E, R>, id: string): Effect.Effect<void, E, R>;"
    ],
    "summary": "Removes every registered item with the supplied id and retains the remaining order.",
    "sections": {
      "Why": "The operation exposes Collection's transition directly so callers can compose it in Effect\nprograms and native event handlers.",
      "Ownership and lifetime": "The returned Effect performs the update or DOM side effect only when run, preserves the declared\nerror and service channels, and retains no resources after completion.",
      "Example": "Import with `import { unregister } from \"@typed/ui/Collection\";` Extend the [Collection.makeState\nrunnable setup](/reference/%40typed%2Fui%2FCollection%23makeState). Inside the linked Effect\nprogram first register `\"save\"`, run `yield* unregister(collection, \"save\")`, then read the\ncollection to observe that only the matching id was removed."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Collection.ts",
      "line": 243
    },
    "since": "1.0.0",
    "category": "Item registration"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/Collection#unregister",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Collection",
    "consumerSpecifier": "@typed/ui/Collection",
    "exportName": "unregister",
    "qualifiedName": "unregister",
    "declarationKey": "declaration:4e74305bb5404404aa487ffd",
    "family": "function",
    "signatures": [
      "export declare function unregister<Value, Element extends object, E, R>(collection: RefSubject.RefSubject<State<Value, Element>, E, R>, id: string): Effect.Effect<void, E, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Collection.ts",
        "start": {
          "line": 243,
          "column": 1
        },
        "end": {
          "line": 250,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Collection.unregister",
      "@typed/ui/index#Collection.unregister"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:4e74305bb5404404aa487ffd",
    "name": "unregister",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function unregister<Value, Element extends object, E, R>(collection: RefSubject.RefSubject<State<Value, Element>, E, R>, id: string): Effect.Effect<void, E, R>;"
        ],
        "typeParameters": [
          "Value",
          "Element extends object",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Collection.ts",
            "start": {
              "line": 243,
              "column": 1
            },
            "end": {
              "line": 250,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function unregister<Value, Element extends object, E, R>(collection: RefSubject.RefSubject<State<Value, Element>, E, R>, id: string): Effect.Effect<void, E, R>;"
    ],
    "typeParameters": [
      "Value",
      "Element extends object",
      "E",
      "R"
    ],
    "summary": "Removes every registered item with the supplied id and retains the remaining order.",
    "sections": {
      "Why": "The operation exposes Collection's transition directly so callers can compose it in Effect\nprograms and native event handlers.",
      "Ownership and lifetime": "The returned Effect performs the update or DOM side effect only when run, preserves the declared\nerror and service channels, and retains no resources after completion.",
      "Example": "Import with `import { unregister } from \"@typed/ui/Collection\";` Extend the [Collection.makeState\nrunnable setup](/reference/%40typed%2Fui%2FCollection%23makeState). Inside the linked Effect\nprogram first register `\"save\"`, run `yield* unregister(collection, \"save\")`, then read the\ncollection to observe that only the matching id was removed."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Collection.ts",
        "start": {
          "line": 243,
          "column": 1
        },
        "end": {
          "line": 250,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Item registration"
  }
}
