@@ -18,7 +18,7 @@ export interface OgImageRenderEventContext {
1818 key : string
1919 basePath : string
2020 renderer : Renderer
21- options : OgImageOptions
21+ options : OgImageOptionsInternal
2222 isDevToolsContextRequest : boolean
2323 publicStoragePath : string
2424 runtimeConfig : OgImageRuntimeConfig
@@ -37,7 +37,7 @@ export interface OgImageRuntimeConfig {
3737
3838 publicStoragePath : string
3939
40- defaults : OgImageOptions
40+ defaults : Omit < OgImageOptions , 'component' | 'renderer' | 'props' | 'url' | 'html' | 'key' | 'cacheKey' | '_query' | '_hash' | 'socialPreview' >
4141 debug : boolean
4242 baseCacheKey : string
4343 hasNuxtIcon : boolean
@@ -103,7 +103,7 @@ export interface ScreenshotOptions {
103103 /**
104104 * The height of the screenshot.
105105 *
106- * @default 630
106+ * @default 600
107107 */
108108 height : number
109109 /**
@@ -115,7 +115,7 @@ export interface ScreenshotOptions {
115115export interface OgImagePrebuilt extends OgImageOptions {
116116}
117117
118- export type DefineOgImageInput = OgImageOptions | OgImagePrebuilt | false
118+ export type DefineOgImageInput = OgImageOptionsInternal | OgImagePrebuilt | false
119119
120120export interface OgImageOptions {
121121 /**
@@ -127,7 +127,7 @@ export interface OgImageOptions {
127127 /**
128128 * The height of the screenshot.
129129 *
130- * @default 630
130+ * @default 600
131131 */
132132 height ?: number | ( ( ) => number ) | Ref < number >
133133 /**
@@ -140,20 +140,10 @@ export interface OgImageOptions {
140140 * Should be an absolute URL.
141141 */
142142 url ?: string | ( ( ) => string ) | Ref < string >
143- /**
144- * The name of the component to render.
145- */
146- component ?: string
147143 /**
148144 * Props to pass to the component.
149145 */
150146 props ?: Record < string , any >
151- /**
152- * Override renderer. Only used internally for screenshots.
153- * For normal usage, renderer is determined by component filename suffix.
154- * @internal
155- */
156- renderer ?: RendererType
157147 extension ?: 'png' | 'jpeg' | 'jpg' | 'svg' | 'html'
158148 emojis ?: IconifyEmojiIconSets | false
159149 /**
@@ -200,6 +190,17 @@ export interface OgImageOptions {
200190 cacheKey ?: string
201191}
202192
193+ /**
194+ * Internal options type used throughout the rendering pipeline.
195+ * Extends OgImageOptions with fields set by defineOgImage() and the module internals.
196+ */
197+ export interface OgImageOptionsInternal extends OgImageOptions {
198+ /** Set by defineOgImage() — the resolved component PascalName */
199+ component ?: string
200+ /** Determined by component filename suffix (.satori.vue, .takumi.vue, .browser.vue) */
201+ renderer ?: RendererType
202+ }
203+
203204export interface FontConfig {
204205 family : string
205206 weight : number
0 commit comments