docsforadobe / Types-for-Adobe

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

Fix: `prompt()` can return null #107

Closed johhnry closed 11 months ago

johhnry commented 1 year ago

The global prompt() function can return null as described in the documentation.

Quote:

Returns the value of the text edit field if the user clicked OK, null if the user clicked Cancel.