diff --git a/index.d.ts b/index.d.ts index bb56d50b..50acaff8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -45,6 +45,7 @@ declare namespace ReactMarkdown { readonly renderers?: {[nodeType: string]: ElementType} readonly astPlugins?: PluggableList readonly plugins?: PluggableList + readonly unwrapDisallowed?: boolean } interface SourceProp { @@ -62,7 +63,6 @@ declare namespace ReactMarkdown { interface DisallowedTypesProp { readonly disallowedTypes: NodeType[] - readonly unwrapDisallowed?: boolean } interface AllowDangerousHtmlProp { diff --git a/react-markdown-types-test.tsx b/react-markdown-types-test.tsx index 25615465..d7159268 100644 --- a/react-markdown-types-test.tsx +++ b/react-markdown-types-test.tsx @@ -23,14 +23,13 @@ test = ( ) test = ( - // $ExpectError - + # header ) test = ( // $ExpectError - + # header )