image icon indicating copy to clipboard operation
image copied to clipboard

[`v2.0.0`] `InstanceType<typeof NuxtImg>` no longer works

Open NamesMT opened this issue 1 month ago • 0 comments

I'm using InstanceType to create a custom NuxtImg component with some default configs that still pass-through all props of NuxtImg:

type NuxtImgProps = InstanceType<typeof NuxtImg>['$props']
interface Props extends /* @vue-ignore */ NuxtImgProps {}
defineProps<Props>()

in v2.0.0, typeof NuxtImg is no longer a valid type to be passed into InstanceType

Image

NamesMT avatar Nov 09 '25 09:11 NamesMT