Commit 4dadaba 1 parent e033f56 commit 4dadaba Copy full SHA for 4dadaba
File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ declare namespace ReactMarkdown {
45
45
readonly renderers ?: { [ nodeType : string ] : ElementType }
46
46
readonly astPlugins ?: PluggableList
47
47
readonly plugins ?: PluggableList
48
+ readonly unwrapDisallowed ?: boolean
48
49
}
49
50
50
51
interface SourceProp {
@@ -62,7 +63,6 @@ declare namespace ReactMarkdown {
62
63
63
64
interface DisallowedTypesProp {
64
65
readonly disallowedTypes : NodeType [ ]
65
- readonly unwrapDisallowed ?: boolean
66
66
}
67
67
68
68
interface AllowDangerousHtmlProp {
Original file line number Diff line number Diff line change @@ -23,14 +23,13 @@ test = (
23
23
</ ReactMarkdown >
24
24
)
25
25
test = (
26
- // $ExpectError
27
- < ReactMarkdown allowedTypes = { [ 'heading' ] } disallowedTypes = { [ 'heading' ] } >
26
+ < ReactMarkdown allowedTypes = { [ 'heading' ] } unwrapDisallowed >
28
27
# header
29
28
</ ReactMarkdown >
30
29
)
31
30
test = (
32
31
// $ExpectError
33
- < ReactMarkdown allowedTypes = { [ 'heading' ] } unwrapDisallowed >
32
+ < ReactMarkdown allowedTypes = { [ 'heading' ] } disallowedTypes = { [ 'heading' ] } >
34
33
# header
35
34
</ ReactMarkdown >
36
35
)
You can’t perform that action at this time.
0 commit comments