felixSchl / photoshop.d.ts

Typescript declaration files and generator for the Photoshop javascript API
Other
78 stars 9 forks source link

Publish on NPM as @types package #6

Open carlpaten opened 7 years ago

carlpaten commented 7 years ago

Since TypeScript 2.x, typings are installed via npm install @types/<package>. It would be nice if this were available under npm install @types/photoshop.

felixSchl commented 7 years ago

Great idea. Do you want to submit a PR with required changes to this repo for it to be compatible? From having a quick browse through their docs it says you should not use /// <reference> anymore, and i am not sure how this would then be handled. From what I understand in order to get it published under @types you just submit a PR to them. So once we're happy with the typings in this repo we can go over there and submit a PR. I also think we should release a package for each of the currently supported versions, i.e. npm install @types/photoshop-cs6 etc.

We need to update:

carlpaten commented 7 years ago

I'm tentatively up for it, could be a couple weeks before I have anything PR-worthy though.

perludum commented 7 years ago

awesome, I appreciate it very much!

Regarding declaration files for UnitValue and ScriptUI it might be an idea to add early beta files to the repo with some initial declarations. People could add new blocks from time to time with pull requests by following the order of the prose "JavaScript Tools Guide".

(Unfortunately, I’m too unexperienced writing ts declarations so far to give it a start)

xiaoweiSun commented 4 years ago

Has this issue been solved yet?