Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update type source of wasm option #173

Merged
merged 3 commits into from Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime/types.ts
Expand Up @@ -4,7 +4,7 @@ import type { ResvgRenderOptions } from '@resvg/resvg-js'
import type { SatoriOptions } from 'satori'
import type { AllowedComponentProps, Component, ComponentCustomProps, VNodeProps } from '@vue/runtime-core'
import type { SharpOptions } from 'sharp'
import type { NitroApp, WasmOptions } from 'nitropack'
import type { NitroApp, NitroOptions } from 'nitropack'
import type { OgImageComponents } from '#nuxt-og-image/components'

export interface OgImageRenderEventContext {
Expand Down Expand Up @@ -141,7 +141,7 @@ export interface RuntimeCompatibilitySchema {
resvg: 'node' | 'wasm' | 'wasm-fs' | false
satori: 'node' | 'wasm' | 'wasm-fs' | false
sharp: 'node' | false
wasm?: WasmOptions
wasm?: NitroOptions['wasm']
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to this PR, but unwasm is explicitly a built-time tool same as NitroOptions.

}

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