Get all form names from module

It’s possible to get all the names from the current solution with ```
var formNames = forms.allnames

but how do I get all form names from a module?