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.