Skip to content

Type Editor


Type Editor / @type-editor/tables / schema / getFromDOM

Type Alias: getFromDOM()

ts
type getFromDOM = (dom) => unknown;

Defined in: tables/src/schema.ts:127

Function type for reading an attribute value from a DOM element.

Parameters

ParameterTypeDescription
domHTMLElementThe DOM element to read from.

Returns

unknown

The extracted attribute value.