Import
import { isSerializableSpreadKey } from "@typed/template/HtmlChunk";Signatures
export declare function isSerializableSpreadKey(key: string): boolean;Why
DOM properties, event handlers, refs, on* attributes, invalid names, and
prototype-sensitive keys are not HTML attributes. Rejecting them here keeps
server output aligned with the web platform and avoids treating object data
as trusted markup.
Ownership and lifetime
This pure predicate retains neither the key nor any application value.
Examples
import { isSerializableSpreadKey } from "@typed/template/HtmlChunk"
isSerializableSpreadKey("aria-label") // true
isSerializableSpreadKey("onclick") // falseOther public imports
These import paths expose the same declaration. Each page retains its own public name and signature.