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

export Metadata type #115

Open
devth opened this issue May 21, 2024 · 2 comments
Open

export Metadata type #115

devth opened this issue May 21, 2024 · 2 comments

Comments

@devth
Copy link

devth commented May 21, 2024

It'd be useful if users could import the Metadata type. Looks like it's not currently exported, unless I'm missing something?

@0xTemporal
Copy link

+1. As a workaround you can infer the type from the unfurl method using types from Typescript 4.5:
export type Metadata = Awaited<ReturnType<typeof unfurl>>

@devth
Copy link
Author

devth commented May 28, 2024

Nice, thanks @0xTemporal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants