Skip to content

Commit 7fe646a

Browse files
committed
Add type constraint to withLDProvider
1 parent 1631558 commit 7fe646a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/withLDProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import hoistNonReactStatics from 'hoist-non-react-statics';
2323
* @param config - The configuration used to initialize LaunchDarkly's JS SDK
2424
* @return A function which accepts your root React component and returns a HOC
2525
*/
26-
export function withLDProvider<T = {}>(
26+
export function withLDProvider<T extends JSX.IntrinsicAttributes = {}>(
2727
config: ProviderConfig,
2828
): (WrappedComponent: React.ComponentType<T>) => React.ComponentType<T> {
2929
return function withLDProviderHoc(WrappedComponent: React.ComponentType<T>): React.ComponentType<T> {

0 commit comments

Comments
 (0)