Skip to content

[ScriptUI] reference enums with typeof to access enum properties #148

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

Merged
merged 1 commit into from
Jun 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions shared/ScriptUI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ declare class ScriptUI {
* Collects the enumerated values that can be used in the alignment and alignChildren properties of controls and containers.
* Predefined alignment values are: TOP, BOTTOM, LEFT, RIGHT, FILL, CENTER
*/
static readonly Alignment: _Alignment
static readonly Alignment: typeof _Alignment

/**
* Collects the enumerated values that can be used as the style argument to the ScriptUI.newFont() method.
* Predefined styles are REGULAR, BOLD, ITALIC, BOLDITALIC.
*/
static readonly FontStyle: _FontStyle
static readonly FontStyle: typeof _FontStyle

/**
* The font constants defined by the host application.
Expand Down Expand Up @@ -493,13 +493,13 @@ declare class ScriptUIGraphics {
* Contains the enumerated constants for the type argument of newBrush().
* Type constants are: SOLID_COLOR, THEME_COLOR.
*/
static readonly BrushType: _BrushOrPenType
static readonly BrushType: typeof _BrushOrPenType

/**
* Contains the enumerated constants for the type argument of newPen().
* Type constants are: SOLID_COLOR, THEME_COLOR.
*/
static readonly PenType: _BrushOrPenType
static readonly PenType: typeof _BrushOrPenType

/**
* The background color for containers; for non-containers, the parent background color.
Expand Down