Skip to content

Commit 891d79a

Browse files
committed
fix(nuxt-picture): export DefaultSlotProps
1 parent 0e4f174 commit 891d79a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎src/runtime/components/NuxtPicture.vue‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,8 @@ const attrs = computed(() => {
7979
return attrs
8080
})
8181
82-
interface DefaultSlotProps {
83-
imgAttrs: Record<string, unknown>
84-
isLoaded: boolean
85-
src?: string
86-
}
87-
8882
defineSlots<{
89-
default: (props: DefaultSlotProps) => any
83+
default(props: DefaultSlotProps): any
9084
}>()
9185
9286
const originalFormat = computed(() => getFileExtension(props.src))
@@ -195,3 +189,11 @@ onMounted(() => {
195189
markFeatureUsage('nuxt-picture')
196190
})
197191
</script>
192+
193+
<script lang="ts">
194+
export interface DefaultSlotProps {
195+
imgAttrs: Record<string, unknown>
196+
isLoaded: boolean
197+
src?: string
198+
}
199+
</script>

0 commit comments

Comments
 (0)