Installation
npm install --save @types/mapbox__hast-util-table-cell-style
Summary
This package contains type definitions for @mapbox/hast-util-table-cell-style (https://github.com/mapbox/hast-util-table-cell-style).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__hast-util-table-cell-style.
index.d.ts
import { Element, Root } from "hast";
/**
* This simple utility transforms the following deprecated styling attributes on `<td>`, `<th>`, and `<tr>` elements to equivalent inline styles:
*
* - `align`
* - `valign`
* - `width`
* - `height`
*
* Mutates the HAST AST you pass in, and returns it.
*/
declare function tableCellStyle(ast: Element): Element;
declare function tableCellStyle(ast: Root): Root;
export = tableCellStyle;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/hast
Credits
These definitions were written by Remco Haszing.