Fix type signature for exportModule.