@types/bidi-css-js
TypeScript icon, indicating that this package has built-in type declarations

3.1.4 • Public • Published

Installation

npm install --save @types/bidi-css-js

Summary

This package contains type definitions for bidi-css-js (https://www.npmjs.com/package/bidi-css-js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bidi-css-js.

index.d.ts

// source: https://github.com/TxHawks/bidi-css-js/blob/master/src/index.js#L11
type Property =
    | "paddingStart"
    | "paddingEnd"
    | "marginStart"
    | "marginEnd"
    | "paddingInlineStart"
    | "paddingInlineEnd"
    | "marginInlineStart"
    | "marginInlineEnd"
    | "insetInlineStart"
    | "insetInlineEnd"
    | "start"
    | "end"
    | "borderStart"
    | "borderEnd"
    | "borderStartColor"
    | "borderEndColor"
    | "borderStartStyle"
    | "borderEndStyle"
    | "borderStartWidth"
    | "borderEndWidth"
    | "borderInlineStart"
    | "borderInlineEnd"
    | "borderInlineStartColor"
    | "borderInlineEndColor"
    | "borderInlineStartStyle"
    | "borderInlineEndStyle"
    | "borderInlineStartWidth"
    | "borderInlineEndWidth"
    | "borderTopStartRadius"
    | "borderTopEndRadius"
    | "borderBottomStartRadius"
    | "borderBottomEndRadius"
    | "borderStartStartRadius"
    | "borderStartEndRadius"
    | "borderEndStartRadius"
    | "borderEndEndRadius";

declare function bidiCssJs(
    styles:
        | Record<Property, string | number | symbol> // autocomplete for most common properties
        | { [key: string]: string | number | symbol }, // but accept any string
    direction: "ltr" | "rtl",
): Record<string, string | number>;

export = bidiCssJs;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Gabor Juhasz.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/bidi-css-js

Weekly Downloads

8

Version

3.1.4

License

MIT

Unpacked Size

5.14 kB

Total Files

5

Last publish

Collaborators

  • types