Closed douglasg14b closed 4 years ago
I'm not a user of TS, nor a big fan of it, but i understand people would need this. Please feel free to PR it.
For anyone waiting for this to be released. You can add declarations to your project.
Add file e.g. shims.vue-fragment.d.ts
with content:
declare module 'vue-fragment' {
import Vue, { AsyncComponent, ComponentOptions, PluginObject } from 'vue'
type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent
export const Fragment: Component
export const Plugin: PluginObject<undefined>
namespace VueFragment {
export const Fragment: Component
export const Plugin: PluginObject<undefined>
}
export default VueFragment
}
As the title says, TypeScript throws an error since there is no declaration file for the lib when implicit any is off.