AdobeXD / typings

Typings for Adobe XD API Surfaces
MIT License
52 stars 8 forks source link

FileStorageProvider::getFileForSaving() seems to have wrong arguments #27

Closed pklaschka closed 5 years ago

pklaschka commented 5 years ago

According to https://adobexdplatform.com/plugin-docs/reference/uxp/module/storage.html#module-storage-filesystemprovider-getfileforsaving, types (an array of file extensions) is the only valid option. However, initialDomain is set in the typings (https://github.com/AdobeXD/typings/blob/master/types/uxp.d.ts#L200).

pklaschka commented 5 years ago

@kerrishotts I think I remember that in the Beta, initalDomain actually was an argument that could be passed and had a bunch of symbols somewhere in the storage module. Have they since been removed (since they aren't part of the docs anymore)?

pklaschka commented 5 years ago

Could also be relevant for https://github.com/AdobeXD/typings/blob/master/types/uxp.d.ts#L212, https://github.com/AdobeXD/typings/blob/master/types/uxp.d.ts#L186 and https://github.com/AdobeXD/typings/blob/master/types/uxp.d.ts#L396.