{
  "id": "@typed/template/EventHandler#handleEventOptions",
  "canonicalId": "@typed/template/EventHandler#handleEventOptions",
  "symbol": {
    "id": "@typed/template/EventHandler#handleEventOptions",
    "packageName": "@typed/template",
    "moduleName": "EventHandler",
    "exportName": "handleEventOptions",
    "kind": "function",
    "signatures": [
      "export declare function handleEventOptions<Ev extends Event>(eventOptions: EventOptions, ev: Ev): boolean;"
    ],
    "summary": "Applies event options to a native DOM event.",
    "sections": {
      "Why": "Centralizing these calls guarantees that options invoke the supplied event's\nmethods before its Effect handler runs. For rendered handlers those methods\nare bound through the `EventSource` Proxy to the underlying native event.",
      "Ownership and lifetime": "The function borrows the event for the call and retains nothing."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { handleEventOptions } from \"@typed/template/EventHandler\"\n\nhandleEventOptions({ preventDefault: true }, new Event(\"submit\", { cancelable: true }))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/EventHandler.ts",
      "line": 573
    },
    "since": "1.0.0",
    "category": "Native event control"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/EventHandler#handleEventOptions",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "EventHandler",
    "consumerSpecifier": "@typed/template/EventHandler",
    "exportName": "handleEventOptions",
    "qualifiedName": "handleEventOptions",
    "declarationKey": "declaration:ddefd74c4f2cf8f3cf6ee1a0",
    "family": "function",
    "signatures": [
      "export declare function handleEventOptions<Ev extends Event>(eventOptions: EventOptions, ev: Ev): boolean;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 573,
          "column": 1
        },
        "end": {
          "line": 579,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/template#EventHandler.handleEventOptions"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:ddefd74c4f2cf8f3cf6ee1a0",
    "name": "handleEventOptions",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function handleEventOptions<Ev extends Event>(eventOptions: EventOptions, ev: Ev): boolean;"
        ],
        "typeParameters": [
          "Ev extends Event"
        ],
        "sourceSpans": [
          {
            "file": "packages/template/src/EventHandler.ts",
            "start": {
              "line": 573,
              "column": 1
            },
            "end": {
              "line": 579,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function handleEventOptions<Ev extends Event>(eventOptions: EventOptions, ev: Ev): boolean;"
    ],
    "typeParameters": [
      "Ev extends Event"
    ],
    "summary": "Applies event options to a native DOM event.",
    "sections": {
      "Why": "Centralizing these calls guarantees that options invoke the supplied event's\nmethods before its Effect handler runs. For rendered handlers those methods\nare bound through the `EventSource` Proxy to the underlying native event.",
      "Ownership and lifetime": "The function borrows the event for the call and retains nothing."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { handleEventOptions } from \"@typed/template/EventHandler\"\n\nhandleEventOptions({ preventDefault: true }, new Event(\"submit\", { cancelable: true }))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 573,
          "column": 1
        },
        "end": {
          "line": 579,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Native event control"
  }
}
