jonasmerlin / astro-seo

Makes it easy to add information that is relevant for SEO to your Astro app.
MIT License
966 stars 51 forks source link

Pass prop variable to openGraph={ basic: {title}. Type '{ description: string; }' is not assignable to type 'string'.ts(2322) #98

Open EdwardDeaver opened 2 months ago

EdwardDeaver commented 2 months ago
    When I put:

openGraph={{ basic: { title: {description},

Description is of type string.

I get the error

Type '{ description: string; }' is not assignable to type 'string'.ts(2322) SEO.astro(37, 7): The expected type comes from property 'title' which is declared here on type '{ title: string; type: string; image: string; url?: string | URL | undefined; }'