Skip to content

Commit e22a965

Browse files
authored
fix(react): Make sure profiler is typed with any (#2838)
1 parent 4faa73c commit e22a965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/profiler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Profiler extends React.Component<ProfilerProps> {
190190
* @param WrappedComponent component that is wrapped by Profiler
191191
* @param options the {@link ProfilerProps} you can pass into the Profiler
192192
*/
193-
function withProfiler<P extends Record<string, unknown>>(
193+
function withProfiler<P extends Record<string, any>>(
194194
WrappedComponent: React.ComponentType<P>,
195195
// We do not want to have `updateProps` given in options, it is instead filled through the HOC.
196196
options?: Pick<Partial<ProfilerProps>, Exclude<keyof ProfilerProps, 'updateProps'>>,

0 commit comments

Comments
 (0)