We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1631558 commit 7fe646aCopy full SHA for 7fe646a
src/withLDProvider.tsx
@@ -23,7 +23,7 @@ import hoistNonReactStatics from 'hoist-non-react-statics';
23
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
24
* @return A function which accepts your root React component and returns a HOC
25
*/
26
-export function withLDProvider<T = {}>(
+export function withLDProvider<T extends JSX.IntrinsicAttributes = {}>(
27
config: ProviderConfig,
28
): (WrappedComponent: React.ComponentType<T>) => React.ComponentType<T> {
29
return function withLDProviderHoc(WrappedComponent: React.ComponentType<T>): React.ComponentType<T> {
0 commit comments