docsforadobe / Types-for-Adobe

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

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

Closed johhnry closed 9 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.