-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modern Typescript workflow. #147
Comments
Also you guys are missing types for this |
Hi there!
Most developers of CEP panels that I know of use Types for Adobe, which is maintained by the community and it isn't complete or up-to-date, necessarily. As CEP is slowly replaced by UXP, fortunately Adobe has started to provide more support for Typescript workflows, starting with type definitions for Photoshop (UXP) and XD. This particular sample was probably provided by @bbb999 and @ericdrobinson working in collaboration. One of them could probably speak to how up-to-date this sample is. |
The
Your assessment is correct (as well as @ErinFinnegan's comment). It is very much legacy. It was originally written well before things like JavaScript classes were a thing and has only had the barest of maintenance updates. If you look at the code you'll also notice that it's simply a wrapper for some CEP-specific APIs that Adobe adds to CEP contexts. I created my own custom Type Declarations around these APIs in the event that we wanted to bypass the I do not anticipate Adobe suddenly doing an overhaul on
I haven't tested the specifics in years, but the overall outline for getting the various TypeScript contexts to work correctly should work fine (this is the configuration in the various I originally wrote the TypeScript sample as part of a larger effort to convince Adobe that they should be providing type declarations for their various application APIs. The goal was to show their immense value. That effort, along with the effort of the community to create those "Types for Adobe" and the overall increase in popularity of TypeScript within the JavaScript ecosystem appears to have finally convinced Adobe to provide an official solution... at least in their new UXP tech stack (which is only available for certain applications as yet). Hopefully they continue with these efforts and treat them as first class citizens going forward. For CEP-based solutions, however, the community-maintained solution is your best bet. How you configure a project to support the two main JavaScript contexts is, of course, up to you. I recommend splitting your development into two "TypeScript projects" (defined by having their own root |
I noticed the typescript example hasn't been update in 4 years. Are the types and general configuration reliable and up to date?
The text was updated successfully, but these errors were encountered: