{
  "id": "@typed/template#isText",
  "canonicalId": "@typed/template#isText",
  "symbol": {
    "id": "@typed/template#isText",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "isText",
    "kind": "function",
    "signatures": [
      "export declare function isText(node: Rendered): node is Text;"
    ],
    "summary": "Checks if a rendered node is a `Text` node.",
    "sections": {
      "Why": "Text serialization and direct text updates use the native node kind.",
      "Ownership and lifetime": "The check borrows the native Text node and does not mutate or retain its\ncharacter data."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { isText } from \"@typed/template/Wire\"\n\nconst result = isText(document.createTextNode(\"hello\"))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Wire.ts",
      "line": 580
    },
    "since": "1.0.0",
    "category": "Native node recognition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#isText",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "isText",
    "qualifiedName": "isText",
    "declarationKey": "declaration:69b8ffc01ad4841f1be779ff",
    "family": "function",
    "signatures": [
      "export declare function isText(node: Rendered): node is Text;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Wire.ts",
        "start": {
          "line": 580,
          "column": 1
        },
        "end": {
          "line": 582,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/template/Wire#isText"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:69b8ffc01ad4841f1be779ff",
    "name": "isText",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function isText(node: Rendered): node is Text;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Wire.ts",
            "start": {
              "line": 580,
              "column": 1
            },
            "end": {
              "line": 582,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function isText(node: Rendered): node is Text;"
    ],
    "typeParameters": [],
    "summary": "Checks if a rendered node is a `Text` node.",
    "sections": {
      "Why": "Text serialization and direct text updates use the native node kind.",
      "Ownership and lifetime": "The check borrows the native Text node and does not mutate or retain its\ncharacter data."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { isText } from \"@typed/template/Wire\"\n\nconst result = isText(document.createTextNode(\"hello\"))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Wire.ts",
        "start": {
          "line": 580,
          "column": 1
        },
        "end": {
          "line": 582,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Native node recognition"
  }
}
