photoshop.d.ts icon indicating copy to clipboard operation
photoshop.d.ts copied to clipboard

Publish on NPM as @types package

Open carlpaten opened this issue 7 years ago • 4 comments

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.

carlpaten avatar Sep 10 '17 19:09 carlpaten

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:

felixSchl avatar Sep 10 '17 20:09 felixSchl

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

carlpaten avatar Sep 10 '17 20:09 carlpaten

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)

perludum avatar Sep 11 '17 12:09 perludum

Has this issue been solved yet?

xiaoweiSun avatar Dec 15 '19 08:12 xiaoweiSun