From 045ec86984a059416419eb40914f0e9e226fddca Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Mon, 8 Apr 2024 11:27:25 +0100 Subject: [PATCH] Add typing for react-inlinesvg mock now its included in tsconfig --- public/test/mocks/react-inlinesvg.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/public/test/mocks/react-inlinesvg.tsx b/public/test/mocks/react-inlinesvg.tsx index b0326a7a6fe..f05d3cfa8c1 100644 --- a/public/test/mocks/react-inlinesvg.tsx +++ b/public/test/mocks/react-inlinesvg.tsx @@ -1,6 +1,17 @@ -import React from 'react'; +import React, { Ref } from 'react'; -export default function ReactInlineSVG({ src, innerRef, cacheRequests, preProcessor, ...rest }) { +export default function ReactInlineSVG({ + src, + innerRef, + cacheRequests, + preProcessor, + ...rest +}: { + src: string; + innerRef: Ref; + cacheRequests: boolean; + preProcessor: () => string; +}) { return ; }