Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime/components/NuxtPicture.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { markFeatureUsage } from '../utils/performance'
import { useImage } from '../composables'
import { useImageProps } from '../utils/props'
import type { BaseImageProps } from '../utils/props'
import type { DataAttributes } from '../../types/image'
import type { DataAttributes } from '../types'
import type { ConfiguredImageProviders, ProviderDefaults } from '@nuxt/image'

import { useHead, useNuxtApp, useRequestEvent } from '#imports'
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export { createImage } from './image'
export { defineProvider } from './utils/provider'
export { createMapper, createOperationsGenerator } from './utils/index'
export type { PictureProps } from './components/NuxtPicture.vue'
export type { ImageProps } from './components/NuxtImg.vue'

export type { Mapper } from './utils/index'
1 change: 1 addition & 0 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type DataAttributes = Record<`data-${string}`, string>
2 changes: 0 additions & 2 deletions src/types/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,3 @@ export interface ImageSizesVariant {
_cWidth: number
_cHeight?: number | undefined
}

export type DataAttributes = Record<`data-${string}`, string>
Loading