{
  "id": "@typed/async-data#isPending",
  "canonicalId": "@typed/async-data#isPending",
  "symbol": {
    "id": "@typed/async-data#isPending",
    "packageName": "@typed/async-data",
    "moduleName": ".",
    "exportName": "isPending",
    "kind": "constant",
    "signatures": [
      "export declare const isPending: <A, E>(asyncData: AsyncData<A, E>) => asyncData is Loading | Refreshing<A, E>;"
    ],
    "summary": "Tests whether the base state is loading or refreshing through optimistic history.",
    "sections": {
      "Why": "Pending status follows the underlying operation rather than disappearing when optimistic values are layered above it; cycles return `false`.\n\n**Known type/runtime discrepancy:** an `Optimistic` wrapper over a pending base returns `true` at runtime, but the existing type predicate narrows to `Loading | Refreshing<A, E>` and excludes `Optimistic`. Do not use this function to narrow before reading `_tag`; use it only as a pending-status boolean and refine the original value separately. The predicate is retained for compatibility and is not an accurate description of every `true` result.",
      "Ownership and lifetime": "This iterative predicate acquires no resources and retains no visited objects after returning."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { isPending, loading, optimistic } from \"@typed/async-data\"\nisPending(optimistic(loading(), \"draft\"))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/async-data/src/index.ts",
      "line": 585
    },
    "since": "1.0.0",
    "category": "State inspection"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/async-data#isPending",
    "packageName": "@typed/async-data",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/async-data",
    "exportName": "isPending",
    "qualifiedName": "isPending",
    "declarationKey": "declaration:c5226de46ebb3d6d625a7aba",
    "family": "variable",
    "signatures": [
      "export declare const isPending: <A, E>(asyncData: AsyncData<A, E>) => asyncData is Loading | Refreshing<A, E>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 585,
          "column": 14
        },
        "end": {
          "line": 598,
          "column": 2
        }
      }
    ],
    "aliases": [],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:c5226de46ebb3d6d625a7aba",
    "name": "isPending",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const isPending: <A, E>(asyncData: AsyncData<A, E>) => asyncData is Loading | Refreshing<A, E>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/async-data/src/index.ts",
            "start": {
              "line": 585,
              "column": 14
            },
            "end": {
              "line": 598,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const isPending: <A, E>(asyncData: AsyncData<A, E>) => asyncData is Loading | Refreshing<A, E>;"
    ],
    "typeParameters": [],
    "summary": "Tests whether the base state is loading or refreshing through optimistic history.",
    "sections": {
      "Why": "Pending status follows the underlying operation rather than disappearing when optimistic values are layered above it; cycles return `false`.\n\n**Known type/runtime discrepancy:** an `Optimistic` wrapper over a pending base returns `true` at runtime, but the existing type predicate narrows to `Loading | Refreshing<A, E>` and excludes `Optimistic`. Do not use this function to narrow before reading `_tag`; use it only as a pending-status boolean and refine the original value separately. The predicate is retained for compatibility and is not an accurate description of every `true` result.",
      "Ownership and lifetime": "This iterative predicate acquires no resources and retains no visited objects after returning."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { isPending, loading, optimistic } from \"@typed/async-data\"\nisPending(optimistic(loading(), \"draft\"))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/async-data/src/index.ts",
        "start": {
          "line": 585,
          "column": 14
        },
        "end": {
          "line": 598,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "State inspection"
  }
}
