Skip to content

Commit 6bdd35c

Browse files
authored
@types/oojs-ui: Refine annotation of OO.ui.Element
Make the properties of OO.ui.Element.ScrollIntoViewConfig["padding"] optional. See the description of `padding`: > Additional padding on the container to scroll past. Object containing *any* of 'top', 'bottom', 'left', or 'right' as numbers. (italics mine) The value of `padding` is used in https://github.com/wikimedia/oojs-ui/blob/19d6e70f4706d544109d071a78268a2d2900e730/src/Element.js#L753
1 parent 85d0220 commit 6bdd35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/oojs-ui/Element.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare namespace OO.ui {
3939
* Additional padding on the container to scroll past. Object containing any of 'top',
4040
* 'bottom', 'left', or 'right' as numbers.
4141
*/
42-
padding?: Rectangle;
42+
padding?: Partial<Rectangle>;
4343
/**
4444
* Scroll container. Defaults to {@link Static.getClosestScrollableContainer getClosestScrollableContainer}
4545
* of the element.

0 commit comments

Comments
 (0)