Skip to content

Commit be96e00

Browse files
authored
fix: update type source of wasm option (#173)
* fix: update type source of `wasm` option * fix: use `NitroConfig` instead * fix: use `NitroOptions` instead
1 parent 6c8936d commit be96e00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ResvgRenderOptions } from '@resvg/resvg-js'
44
import type { SatoriOptions } from 'satori'
55
import type { AllowedComponentProps, Component, ComponentCustomProps, VNodeProps } from '@vue/runtime-core'
66
import type { SharpOptions } from 'sharp'
7-
import type { NitroApp, WasmOptions } from 'nitropack'
7+
import type { NitroApp, NitroOptions } from 'nitropack'
88
import type { OgImageComponents } from '#nuxt-og-image/components'
99

1010
export interface OgImageRenderEventContext {
@@ -141,7 +141,7 @@ export interface RuntimeCompatibilitySchema {
141141
resvg: 'node' | 'wasm' | 'wasm-fs' | false
142142
satori: 'node' | 'wasm' | 'wasm-fs' | false
143143
sharp: 'node' | false
144-
wasm?: WasmOptions
144+
wasm?: NitroOptions['wasm']
145145
}
146146

147147
export type CompatibilityFlags = Partial<Omit<RuntimeCompatibilitySchema, 'wasm'>>

0 commit comments

Comments
 (0)