From dfdfc84670698e6b0bf3f64c6957f9723314ddba Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Fri, 22 Nov 2019 18:35:33 +0200 Subject: [PATCH] [react] add translate prop to HTMLAttributes (#40211) --- types/react/index.d.ts | 1 + types/react/test/elementAttributes.tsx | 29 ++++++++++++++++++++++++++ types/react/tsconfig.json | 1 + 3 files changed, 31 insertions(+) create mode 100644 types/react/test/elementAttributes.tsx diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 034b16d880..9937cb0299 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -1669,6 +1669,7 @@ declare namespace React { style?: CSSProperties; tabIndex?: number; title?: string; + translate?: 'yes' | 'no'; // Unknown radioGroup?: string; // , diff --git a/types/react/test/elementAttributes.tsx b/types/react/test/elementAttributes.tsx new file mode 100644 index 0000000000..01cc600c41 --- /dev/null +++ b/types/react/test/elementAttributes.tsx @@ -0,0 +1,29 @@ +import * as React from 'react'; + +const testCases = [ + , + , + , + , + , + , + , +