From 831b49efaf6255cfb014f5968cd68aad3f50cd0a Mon Sep 17 00:00:00 2001 From: Yao Date: Sat, 27 Jan 2018 01:16:06 +0800 Subject: [PATCH] @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. --- types/quixote/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/quixote/index.d.ts b/types/quixote/index.d.ts index 7bf7ffbc65..2f420b5bec 100644 --- a/types/quixote/index.d.ts +++ b/types/quixote/index.d.ts @@ -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; -} \ No newline at end of file +}