diff --git a/src/json-ld.tsx b/src/json-ld.tsx index ef9a0fa..e31edcc 100644 --- a/src/json-ld.tsx +++ b/src/json-ld.tsx @@ -17,10 +17,16 @@ import * as React from "react"; import { Thing, WithContext } from "schema-dts"; +interface JsonLdOptions { + /** Adds indentation, white space, and line break characters to JSON-LD output. {@link JSON.stringify} */ + space?: string | number; +} + /** * Component that inline-includes a JSON-LD script where specified. * - * @example + * For Example: + * * ```tsx * * item={{ @@ -38,10 +44,8 @@ import { Thing, WithContext } from "schema-dts"; * /> * ``` */ -export class JsonLd extends React.Component<{ +export class JsonLd extends React.Component; - /** Adds indentation, white space, and line break characters to JSON-LD output. {@link JSON.stringify} */ - space?: string | number; }> { render() { return ( @@ -55,6 +59,32 @@ export class JsonLd extends React.Component<{ } } +/** + * Produces a Helmet-style