force use of enum

force use of enum

hi!

is it possible to force the use of an enum as method parameter? I don't know how to do it without type description.

something like:
  1. function (myEnum param1) {
  2. }

--------------
Just so we're clear - you need a hero?