From aee1bdda2de633df07013e0102aacfbb3c77d6cb Mon Sep 17 00:00:00 2001 From: Sergey Volkov Date: Thu, 21 Nov 2019 13:28:45 +0300 Subject: [PATCH] docs: mark as optional property "animated" of AnimationOption Property "animated" is not required by View's "hide" and "show" methods. Also it will cause errors in TypeScript declaration file (if you'll try to build one from docs) for methods "hide" and "show" of "Titanium.UI.iPad.Popover" class. ```typescript declare interface AnimationOption { animated?: boolean; // "animated: boolean;" will cause "Error TS2416" } declare interface PopoverParams { animated?: boolean; rect?: Dimension; view: Titanium.UI.View; } class View extends Titanium.Proxy { hide(options?: AnimationOption): void; show(options?: AnimationOption): void; } class Popover extends Titanium.UI.View { hide(options: PopoverParams): void; show(params: PopoverParams): void; } ``` --- apidoc/Titanium/UI/View.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/apidoc/Titanium/UI/View.yml b/apidoc/Titanium/UI/View.yml index e144970d0a6..3190521dd3b 100644 --- a/apidoc/Titanium/UI/View.yml +++ b/apidoc/Titanium/UI/View.yml @@ -2017,6 +2017,7 @@ properties: summary: Determines whether to enable a circular reveal animation. type: Boolean default: false + optional: true osver: {android: {min: 5.0}} ---