UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

9 lines (8 loc) 555 B
import { Recipe as RecipeSchema, HowTo as HowToSchema, ItemList as ItemListSchema } from "schema-dts"; type WithoutType<T, Type extends string> = Omit<T, "@type"> & { "@type"?: Type; }; export declare function Recipe(props: WithoutType<RecipeSchema, "Recipe">): import("react/jsx-runtime").JSX.Element; export declare function HowTo(props: WithoutType<HowToSchema, "HowTo">): import("react/jsx-runtime").JSX.Element; export declare function ItemList(props: WithoutType<ItemListSchema, "ItemList">): import("react/jsx-runtime").JSX.Element; export {};