AdobeDocs / cis-photoshop-api-docs

https://developer.adobe.com/photoshop/photoshop-api-docs/
https://developer.adobe.com/photoshop/photoshop-api-docs/
Apache License 2.0
16 stars 27 forks source link

Add types to sdk #155

Open velara3 opened 8 months ago

velara3 commented 8 months ago

Using VSCode with the library there doesn't seem to be auto complete on the API. No type definitions (or asdocs).

If I follow the example code from here:

      const client = await sdk.init(imsOrgId, clientIdAndApiKey, authToken);
      client. // does not show auto complete of object members

Expected Behaviour

Autocomplete to show documentation in VSCode

Actual Behaviour

No autocomplete and no documentation in VSCode

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Create a new node project and then follow the instructions here to import the library and then start to type the example code in vscode. You would expect to see auto complete.

https://github.com/adobe/aio-lib-photoshop-api?tab=readme-ov-file#usage

Platform and Version

OSX

Sample Code that illustrates the problem

https://github.com/adobe/aio-lib-photoshop-api?tab=readme-ov-file#usage

Logs taken while reproducing problem

Follow instructions here:
https://github.com/adobe/aio-lib-photoshop-api?tab=readme-ov-file#usage