From 41b4ac30ac8c2dad8680516f28169a045874bbfa Mon Sep 17 00:00:00 2001 From: Habip Akyol <20181102066@ogr.msgsu.edu.tr> Date: Tue, 31 Oct 2023 15:19:05 +0300 Subject: [PATCH] Fix typo in excluding-props.md (#693) --- docs/hoc/excluding-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hoc/excluding-props.md b/docs/hoc/excluding-props.md index d40e0db5..42a89a3f 100644 --- a/docs/hoc/excluding-props.md +++ b/docs/hoc/excluding-props.md @@ -95,7 +95,7 @@ function withInjectedProps>( ) { return function (Component: React.ComponentType) { return function (props: Omit): React.JSX.Element { - //A type coercion is neccessary because TypeScript doesn't know that the Omit + {...injectedProps} = T + //A type coercion is necessary because TypeScript doesn't know that the Omit + {...injectedProps} = T const newProps = { ...props, ...injectedProps } as T; return ; };