I see that Apps Script uses a lot of enums, predefined by Google (e.g. Enum MimeType
).
How can I define my own Enum types so they are shown on my own libraries?
I can add a standard enum like this.
var size = {
SMALL: 1,
MEDIUM: 2,
LARGE: 3,
};
var mySize = size.MEDIUM;
and it works properly, but if I add my project as a library, the enum is not listed as a standard enum, but as an object type:
Any ideas?