Resources module vs js types

When configuring resources in yaml, what is the difference between setting type: to module or js or since the Dashboard|Resource UI only has one JavaScript Module option are they the same thing?