Type checking module with conditional imports
I have a module that conditionally calls
Type checking fails unless a configuration is passed that results in all those conditional
What's the normal way of getting around this so type checking can pass regardless of config?
addImports, depending on the Nuxt configuration.Type checking fails unless a configuration is passed that results in all those conditional
addImport being executed. For example some plugins (that are also conditionally added using addPlugin) use imports that may not be present, so vue-tsc will fail.What's the normal way of getting around this so type checking can pass regardless of config?