Represent Adobe's array-like collections in TypeScript -


adobe's extendscript features number-indexed collections, example artlayers type. document.artlayers[0] might me first artlayer in present document. artlayers has number of miscellaneous fields , methods. how can best represent type in .d.ts file?

a definition extendscript can found here. looked @ , not seem perfect, starting/reference point.

if had write type describe it, use this:

interface artlayers {     length: number;     [index: number]: artlayer;     parent: document     typename: string     add(): void     getbyname(name: string): void     removeall(): void } 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -