Skip to content

Commit 6ce8292

Browse files
🤖 Merge PR DefinitelyTyped#75626  [@types/photoshop] Update for Photoshop 27.11  by @samgannawayA
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ad58668 commit 6ce8292

42 files changed

Lines changed: 1349 additions & 567 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import * as Constants from "./dom/Constants";
2+
export default Constants;

‎types/photoshop/dom/Actions.d.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/** @ignore */
2+
export declare function validateActionSet(actionSet: ActionSet): void;
3+
/**
4+
* @ignore
5+
*/
6+
export declare function PSActionSet(id: number): ActionSet;
7+
/**
8+
* @ignore
9+
*/
10+
export declare function PSAction(id: number): Action;
111
/**
212
* Photoshop Actions
313
*

‎types/photoshop/dom/Channel.d.ts‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,43 @@ export declare abstract class Channel {
9393
*/
9494
abstract merge(): Promise<void>;
9595
}
96+
/**
97+
* @ignore
98+
*/
99+
export declare class ComponentChannel extends Channel {
100+
private readonly _enumValue;
101+
/**
102+
* The class name of the referenced object: *"ComponentChannel"*.
103+
* @minVersion 24.5
104+
*/
105+
get typename(): "ComponentChannel";
106+
get name(): string;
107+
set name(name: string);
108+
get histogram(): number[];
109+
get color(): SolidColor;
110+
set color(color: SolidColor);
111+
get opacity(): number;
112+
set opacity(opacity: number);
113+
remove(): Promise<void>;
114+
merge(): Promise<void>;
115+
}
116+
/**
117+
* @ignore
118+
*/
119+
export declare class AlphaChannel extends Channel {
120+
private readonly _id;
121+
/**
122+
* The class name of the referenced object: *"AlphaChannel"*.
123+
* @minVersion 24.5
124+
*/
125+
get typename(): "AlphaChannel";
126+
get name(): string;
127+
set name(name: string);
128+
get histogram(): number[];
129+
get color(): SolidColor;
130+
set color(color: SolidColor);
131+
get opacity(): number;
132+
set opacity(opacity: number);
133+
remove(): Promise<void>;
134+
merge(): Promise<void>;
135+
}

‎types/photoshop/dom/Constants.d.ts‎

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,23 @@ export declare enum ResampleMethod {
9292
/**
9393
* Changes image resolution value without affecting document dimension
9494
*
95-
* Currently unsupported**
95+
* **Currently unsupported**
9696
*/
9797
NONE = "none",
9898
}
99+
/**
100+
* The generative upscale model to use for AI-powered upscaling.
101+
*
102+
* Pass to [[Document.generativeUpscale]]()
103+
*
104+
* @minVersion 25.0
105+
*/
106+
export declare enum GenerativeUpscaleModel {
107+
/**
108+
* Adobe Firefly generative upscale model
109+
*/
110+
FIREFLY = "firefly",
111+
}
99112
/**
100113
* The type of save operation.
101114
* @minVersion 22.5
@@ -135,7 +148,7 @@ export declare enum SaveOptions {
135148
/**
136149
* Number of bits per channel (also called pixel depth or color depth).
137150
*
138-
* The number selected indicates the exponent of 2.
151+
* The number selected indicates the exponent of 2. With 8 bits per channel, we have 256 possible colors.
139152
* @minVersion 22.5
140153
*/
141154
export declare enum BMPDepthType {
@@ -293,15 +306,15 @@ export declare enum AnchorPosition {
293306
*/
294307
export declare enum TrimType {
295308
/**
296-
* Bottom right pixel color.
309+
* The color of the pixel in the bottom right corner of the image.
297310
*/
298311
BOTTOMRIGHT = "bottom-right",
299312
/**
300-
* Top left pixel color.
313+
* The color of the pixel in the top left right corner of the image.
301314
*/
302315
TOPLEFT = "top-left",
303316
/**
304-
* Transparent pixels.
317+
* Fully transparent pixels.
305318
*/
306319
TRANSPARENT = "transparent",
307320
}
@@ -513,31 +526,33 @@ export declare enum DocumentFill {
513526
* @minVersion 22.5
514527
*/
515528
export declare enum LayerKind {
529+
NORMAL = "pixel",
530+
GROUP = "group",
531+
SMARTOBJECT = "smartObject",
532+
GRADIENTFILL = "gradientFill",
533+
PATTERNFILL = "pattern",
534+
SOLIDFILL = "solidColor",
535+
TEXT = "text",
536+
LAYER3D = "threeD",
537+
VIDEO = "video",
516538
BLACKANDWHITE = "blackAndWhite",
517539
BRIGHTNESSCONTRAST = "brightnessContrast",
518540
CHANNELMIXER = "channelMixer",
519541
COLORBALANCE = "colorBalance",
542+
COLORLOOKUP = "colorLookup",
520543
CURVES = "curves",
521544
EXPOSURE = "exposure",
522-
GRADIENTFILL = "gradientFill",
523545
GRADIENTMAP = "gradientMap",
524546
HUESATURATION = "hueSaturation",
525547
INVERSION = "inversion",
526548
LEVELS = "levels",
527-
NORMAL = "pixel",
528-
PATTERNFILL = "pattern",
529549
PHOTOFILTER = "photoFilter",
530550
POSTERIZE = "posterize",
531551
SELECTIVECOLOR = "selectiveColor",
532-
SMARTOBJECT = "smartObject",
533-
SOLIDFILL = "solidColor",
534-
TEXT = "text",
535552
THRESHOLD = "threshold",
536-
LAYER3D = "threeD",
537553
VIBRANCE = "vibrance",
538-
VIDEO = "video",
539-
GROUP = "group",
540-
COLORLOOKUP = "colorLookup",
554+
CLARITY = "clarity",
555+
GRAIN = "grainAdjustment",
541556
}
542557
/**
543558
* Placement modes for Layer.move method

0 commit comments

Comments
 (0)