tsx-schema-markup
Version:
A package for adding schema markup to your tsx page
9 lines (8 loc) • 605 B
TypeScript
import { Article as ArticleSchema, NewsArticle as NewsArticleSchema, BlogPosting as BlogPostingSchema } from "schema-dts";
type WithoutType<T, Type extends string> = Omit<T, "@type"> & {
"@type"?: Type;
};
export declare function Article(props: WithoutType<ArticleSchema, "Article">): import("react/jsx-runtime").JSX.Element;
export declare function NewsArticle(props: WithoutType<NewsArticleSchema, "NewsArticle">): import("react/jsx-runtime").JSX.Element;
export declare function BlogPosting(props: WithoutType<BlogPostingSchema, "BlogPosting">): import("react/jsx-runtime").JSX.Element;
export {};