Skip to content

Commit 64c76ee

Browse files
committed
feat: add type hints for provider option
1 parent 3654b3e commit 64c76ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/image.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { RuntimeConfig } from '@nuxt/schema'
22
import type { H3Event } from 'h3'
3-
import type { ConfiguredImageProviders, ProviderDefaults } from './module'
3+
import type { ConfiguredImageProviders, ImageProviders, ProviderDefaults } from './module'
44

55
export interface ImageModifiers {
66
width: number | string
@@ -55,7 +55,7 @@ export interface CreateImageOptions {
5555
}
5656
event?: H3Event
5757
presets: { [name: string]: ImageOptions }
58-
provider: string
58+
provider: (string & {}) | keyof ImageProviders
5959
screens: Record<string, number>
6060
alias: Record<string, string>
6161
domains: string[]

0 commit comments

Comments
 (0)