checking types for modules in amd-to-cjs