forked from DefinitelyTyped/DefinitelyTyped
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
47 lines (45 loc) · 1.27 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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;