mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Constrain array length of expand properties
This commit is contained in:
Vendored
+4
-2
@@ -36,11 +36,13 @@ export interface JssExpand {
|
||||
attachment: CSSProperties['backgroundAttachment'];
|
||||
color: CSSProperties['backgroundColor'];
|
||||
image: CSSProperties['backgroundImage'];
|
||||
position: CSSProperties['backgroundPosition'] | number[]; // Can be written using array e.g. `[0 0]`
|
||||
position:
|
||||
| CSSProperties['backgroundPosition']
|
||||
| [csstype.Properties['backgroundPosition'], csstype.Properties['backgroundPosition']]; // Can be written using array e.g. `[0 0]`
|
||||
repeat: CSSProperties['backgroundRepeat'];
|
||||
size:
|
||||
| CSSProperties['backgroundSize']
|
||||
| Array<CSSProperties['backgroundSize']>; // Can be written using array e.g. `['center' 'center']`
|
||||
| [csstype.Properties['backgroundSize'], csstype.Properties['backgroundSize']]; // Can be written using array e.g. `['center' 'center']`
|
||||
}
|
||||
| CSSProperties['background'];
|
||||
border:
|
||||
|
||||
Reference in New Issue
Block a user