UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

9 lines (8 loc) 550 B
import { Quiz as QuizSchema, Question as QuestionSchema, Answer as AnswerSchema } from "schema-dts"; type WithoutType<T, Type extends string> = Omit<T, "@type"> & { "@type"?: Type; }; export declare function Quiz(props: WithoutType<QuizSchema, "Quiz">): import("react/jsx-runtime").JSX.Element; export declare function Question(props: WithoutType<QuestionSchema, "Question">): import("react/jsx-runtime").JSX.Element; export declare function Answer(props: WithoutType<AnswerSchema, "Answer">): import("react/jsx-runtime").JSX.Element; export {};