docsforadobe / Types-for-Adobe

TypeScript types for Adobe: AfterEffects, Animate, Audition, Illustrator, InDesign, Photoshop, Premiere, ScriptUI.
532 stars 126 forks source link

ScriptUI: optional `bounds` prop for "tab" control #86

Closed fartinmartin closed 11 months ago

fartinmartin commented 3 years ago

I believe the bounds prop should be optional when creating a "tab" control. This removes this error I was receiving:

No overload matches this call.
  The last overload gave the following error.
    Argument of type '"tab"' is not assignable to parameter of type '"treeview"'.

when attempting:

var tabbedPanel = Window.add("tabbedpanel", undefined, undefined, { name: "tabbedPanel" });
var tab1 = tabbedPanel.add("tab", undefined, undefined, { name: "tab1" });
zlovatt commented 11 months ago

Was handled elsewhere; closing.