{
  "id": "@typed/template#getElements",
  "canonicalId": "@typed/template#getElements",
  "symbol": {
    "id": "@typed/template#getElements",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "getElements",
    "kind": "function",
    "signatures": [
      "export declare function getElements(node: Rendered): Array<Element>;"
    ],
    "summary": "Extracts all Elements from a `Rendered` value.",
    "sections": {
      "Why": "Delegated native events attach to the concrete element roots represented by\narrays, fragments, and Wires.",
      "Ownership and lifetime": "The returned array borrows exact Element objects; it does not clone or own\nthem."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { getElements } from \"@typed/template/Wire\"\n\nconst div = document.createElement(\"div\")\nconst span = document.createElement(\"span\")\nconst fragment = document.createDocumentFragment()\nfragment.appendChild(div)\nfragment.appendChild(span)\n\nconst elements = getElements(fragment)\nconsole.log(elements.length) // 2"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Wire.ts",
      "line": 764
    },
    "since": "1.0.0",
    "category": "Rendered element traversal"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#getElements",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "getElements",
    "qualifiedName": "getElements",
    "declarationKey": "declaration:102acd526242cfe1e6d11fcf",
    "family": "function",
    "signatures": [
      "export declare function getElements(node: Rendered): Array<Element>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Wire.ts",
        "start": {
          "line": 764,
          "column": 1
        },
        "end": {
          "line": 770,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/template/Wire#getElements"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:102acd526242cfe1e6d11fcf",
    "name": "getElements",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function getElements(node: Rendered): Array<Element>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Wire.ts",
            "start": {
              "line": 764,
              "column": 1
            },
            "end": {
              "line": 770,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function getElements(node: Rendered): Array<Element>;"
    ],
    "typeParameters": [],
    "summary": "Extracts all Elements from a `Rendered` value.",
    "sections": {
      "Why": "Delegated native events attach to the concrete element roots represented by\narrays, fragments, and Wires.",
      "Ownership and lifetime": "The returned array borrows exact Element objects; it does not clone or own\nthem."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { getElements } from \"@typed/template/Wire\"\n\nconst div = document.createElement(\"div\")\nconst span = document.createElement(\"span\")\nconst fragment = document.createDocumentFragment()\nfragment.appendChild(div)\nfragment.appendChild(span)\n\nconst elements = getElements(fragment)\nconsole.log(elements.length) // 2"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Wire.ts",
        "start": {
          "line": 764,
          "column": 1
        },
        "end": {
          "line": 770,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Rendered element traversal"
  }
}
