bit-matrix / script-wiz-lib

MIT License
42 stars 5 forks source link

Export Opcodes list as static member #39

Open tiero opened 2 years ago

tiero commented 2 years ago

If I want to access an OpCode defined in the lib in my code, only way is to instantiate new ScripWiz(...) first and the access it via .opCodes property.

Would be more handy If I could just the value of them directly in a static way

eg.

import {Opcodes} from "@script-wiz/lib";