From e2f32d245c2891bb56f99610b494e2bfb6f9e4fe Mon Sep 17 00:00:00 2001 From: Michael Hebron Date: Mon, 9 Dec 2019 04:24:39 -0800 Subject: [PATCH] Add crossOrigin to SVGAttributes (#40880) --- types/react/index.d.ts | 1 + types/react/test/elementAttributes.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index d277c7e07f..68f3549683 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2259,6 +2259,7 @@ declare namespace React { // Other HTML properties supported by SVG elements in browsers role?: string; tabIndex?: number; + crossOrigin?: "anonymous" | "use-credentials" | ""; // SVG Specific attributes accentHeight?: number | string; diff --git a/types/react/test/elementAttributes.tsx b/types/react/test/elementAttributes.tsx index 01cc600c41..f55fabfd86 100644 --- a/types/react/test/elementAttributes.tsx +++ b/types/react/test/elementAttributes.tsx @@ -26,4 +26,5 @@ const testCases = [ , , , + , ];