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
Post a Comment