docsforadobe / Types-for-Adobe

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

Multiply array of numbers by scalar #39

Open bryab opened 6 years ago

bryab commented 6 years ago

Extendscript allows you to multiply an array of numbers by a scalar. Typescript doesn't allow this.

var v = [0,.5,1] * 255;
v == [0,127.5, 255];
bryab commented 6 years ago

I know this isn't really a solvable issue, but thought I'd share it. Extendscript is certainly a strange edge case for Typescript.

pravdomil commented 6 years ago

ok

pravdomil commented 4 years ago

open pr