-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: dc frame previews #340
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
/** | ||
* Path of the next frame. | ||
* | ||
* @example '/submit' | ||
*/ | ||
action?: FrameResponse['action'] | ||
/** | ||
* HTTP response headers. | ||
*/ | ||
headers?: FrameResponse['headers'] | ||
/** | ||
* An icon ID. | ||
* | ||
* @see https://warpcast.notion.site/Spec-Farcaster-Actions-84d5a85d479a43139ea883f6823d8caa | ||
* @example `'log'` | ||
*/ | ||
icon?: Octicon | ||
/** | ||
* Title of the frame (added as `og:title`). | ||
* | ||
* @example 'Hello Frog' | ||
*/ | ||
title?: FrameResponse['title'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if we can inherit those docs from FrameResponse
– without the comment it doesn't seem to pull up.
} & ( | ||
| { | ||
/** | ||
* Preview Image to render for the frame. Can either be a JSX element, or URL. | ||
* | ||
* @example | ||
* <div style={{ fontSize: 60 }}>Hello Frog</div> | ||
*/ | ||
image?: JSX.Element | ||
/** | ||
* Image options. | ||
* | ||
* @see https://vercel.com/docs/functions/og-image-generation/og-image-api | ||
* | ||
* @example | ||
* { width: 1200, height: 630 } | ||
*/ | ||
imageOptions?: Pretty<Omit<ImageOptions, 'fonts'>> | undefined | ||
} | ||
| { | ||
/** | ||
* Preview Image to render for the frame. Can either be a JSX element, or URL. | ||
* | ||
* @example | ||
* "https://i.ytimg.com/vi/R3UACX5eULI/maxresdefault.jpg" | ||
*/ | ||
image?: string | ||
imageOptions?: never | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot do a Pick<FrameResponse, 'image' | 'imageOptions'>
as it breaks discriminated union.
No description provided.