title: How to create enums in Google Apps Script libraries?
body: <p>I see that Apps Script uses a lot of enums, predefined by Google (e.g. <a href="https://developers.google.com/apps-script/reference/base/mime-type" rel="nofollow noreferrer"><code>Enum MimeType</code></a>).</p>
  
  <p>How can I define my own Enum types so they are shown on my own libraries? </p>
  
  <p>I can add a standard enum like this.</p>
  
  <pre><code>var size = {
    SMALL: 1,
    MEDIUM: 2,
    LARGE: 3,
  };
  
  var mySize = size.MEDIUM;
  </code></pre>
  
  <p>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:</p>
  
  <p><img src="https://i.stack.imgur.com/qST0y.png" alt="Enum shown as object"></p>
  
  <p>Any ideas?</p>