Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / TableToSlidesElement

Interface: TableToSlidesElement

Defined in: src/types/table.ts:23

A <table> element, from whatever DOM implementation the caller has.

Deliberately not lib.dom's Element. lib.dom's types are built for a browser, and a non-browser DOM's element type — happy-dom's, jsdom's — declares its own members and does not satisfy them, so demanding Element would reject from TypeScript exactly the implementations ts-pptx/html exists to accept. Requiring the three members the conversion actually calls keeps a mistyped argument an error while letting every real DOM through.

Properties

getAttribute

getAttribute: (name) => string | null

Defined in: src/types/table.ts:24

Parameters

name

string

Returns

string | null


querySelector

querySelector: (selectors) => unknown

Defined in: src/types/table.ts:25

Parameters

selectors

string

Returns

unknown


querySelectorAll

querySelectorAll: (selectors) => unknown

Defined in: src/types/table.ts:26

Parameters

selectors

string

Returns

unknown