docsforadobe / Types-for-Adobe

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

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

Closed fartinmartin closed 9 months ago

fartinmartin commented 2 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 9 months ago

Was handled elsewhere; closing.