npm.io
0.2.3 • Published 2 years ago

@types/mapbox__hast-util-table-cell-style

Licence
MIT
Version
0.2.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/hast

Credits

These definitions were written by Remco Haszing.