@types/mapbox__hast-util-table-cell-style
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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.

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

    Package Sidebar

    Install

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

    Weekly Downloads

    43

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    3.72 kB

    Total Files

    5

    Last publish

    Collaborators

    • types