From 5a3f029dc46eaa76ea9442b571284d2ee227f2ed Mon Sep 17 00:00:00 2001 From: Gaspard Bucher Date: Thu, 2 Mar 2017 11:48:06 +0100 Subject: [PATCH] Add suppressContentEditableWarning to react * react: add support for the new suppressContentEditableWarning flag https://github.com/facebook/react/pull/6112 --- react/index.d.ts | 1 + react/test/tsx.tsx | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/react/index.d.ts b/react/index.d.ts index d3c254f875..c8ddc717c7 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -2042,6 +2042,7 @@ declare namespace React { // React-specific Attributes defaultChecked?: boolean; defaultValue?: string | string[]; + suppressContentEditableWarning?: boolean; // Standard HTML Attributes accept?: string; diff --git a/react/test/tsx.tsx b/react/test/tsx.tsx index 540c712596..1d6b683bcf 100644 --- a/react/test/tsx.tsx +++ b/react/test/tsx.tsx @@ -33,3 +33,13 @@ StatelessComponent2.defaultProps = {
Hello again!
; + +// React-specific Attributes +
+ foo +