Skip to content

Commit f86b5e7

Browse files
authored
Merge pull request #148 from fartinmartin/enums
[ScriptUI] reference `enum`s with `typeof` to access enum properties
2 parents 09b0b16 + 4ec3d36 commit f86b5e7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

shared/ScriptUI.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ declare class ScriptUI {
6262
* Collects the enumerated values that can be used in the alignment and alignChildren properties of controls and containers.
6363
* Predefined alignment values are: TOP, BOTTOM, LEFT, RIGHT, FILL, CENTER
6464
*/
65-
static readonly Alignment: _Alignment
65+
static readonly Alignment: typeof _Alignment
6666

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

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

498498
/**
499499
* Contains the enumerated constants for the type argument of newPen().
500500
* Type constants are: SOLID_COLOR, THEME_COLOR.
501501
*/
502-
static readonly PenType: _BrushOrPenType
502+
static readonly PenType: typeof _BrushOrPenType
503503

504504
/**
505505
* The background color for containers; for non-containers, the parent background color.

0 commit comments

Comments
 (0)