mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
@types/quixote - make attributes in ElementDescriptor optional (#23089)
When do assertion, you need not to provide all options
somethings like
```
button.assert({
width: container.width
} );
```
is also ok from official doc.
This commit is contained in:
parent
c4608b1b7c
commit
831b49efaf
18
types/quixote/index.d.ts
vendored
18
types/quixote/index.d.ts
vendored
@ -74,28 +74,28 @@ interface QElementList {
|
||||
// Element positions and sizes are available on all QElement instances.
|
||||
interface ElementDescriptor {
|
||||
// The top edge of the element
|
||||
top: PositionDescriptor;
|
||||
top?: PositionDescriptor;
|
||||
|
||||
// The right edge of the element
|
||||
right: PositionDescriptor;
|
||||
right?: PositionDescriptor;
|
||||
|
||||
// The bottom edge of the element
|
||||
bottom: PositionDescriptor;
|
||||
bottom?: PositionDescriptor;
|
||||
|
||||
// The left edge of the element
|
||||
left: PositionDescriptor;
|
||||
left?: PositionDescriptor;
|
||||
|
||||
// Horizontal center: midway between the right and left edges.
|
||||
center: PositionDescriptor;
|
||||
center?: PositionDescriptor;
|
||||
|
||||
// Vertical middle: midway between the top and bottom edges.
|
||||
middle: PositionDescriptor;
|
||||
middle?: PositionDescriptor;
|
||||
|
||||
// Width of the element.
|
||||
width: SizeDescriptor;
|
||||
width?: SizeDescriptor;
|
||||
|
||||
// Height of the element.
|
||||
height: SizeDescriptor;
|
||||
height?: SizeDescriptor;
|
||||
}
|
||||
|
||||
// Viewport positions and sizes are available on QFrame.viewport()
|
||||
@ -230,4 +230,4 @@ declare module "quixote" {
|
||||
}
|
||||
|
||||
export = Quixote;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user