mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Add suppressContentEditableWarning to react
* react: add support for the new suppressContentEditableWarning flag https://github.com/facebook/react/pull/6112
This commit is contained in:
1
react/index.d.ts
vendored
1
react/index.d.ts
vendored
@@ -2042,6 +2042,7 @@ declare namespace React {
|
||||
// React-specific Attributes
|
||||
defaultChecked?: boolean;
|
||||
defaultValue?: string | string[];
|
||||
suppressContentEditableWarning?: boolean;
|
||||
|
||||
// Standard HTML Attributes
|
||||
accept?: string;
|
||||
|
||||
@@ -33,3 +33,13 @@ StatelessComponent2.defaultProps = {
|
||||
<div slot="Some Div"> Hello again! </div>
|
||||
</g>
|
||||
</svg>;
|
||||
|
||||
// React-specific Attributes
|
||||
<div
|
||||
defaultChecked
|
||||
defaultValue="some value"
|
||||
contentEditable
|
||||
suppressContentEditableWarning
|
||||
>
|
||||
<b>foo</b>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user