class Color extends Enumify { static red = new Color(); static orange = new Color(); static yellow = new Color(); static green = new Color(); static blue = new Color(); static purple = new Color(); static _ = this.closeEnum(); // TypeScript: Color.closeEnum() } // Instance properties assert.equal( Color.red.enumKey, 'red'); assert.equal( Color.red.enumOrdinal, 0); // Prototype methods assert.equal