Merge branch '18848-upgrade-yarn3'. Closes #18848
[arvados-workbench2.git] / src / store / tree-picker / picker-id.tsx
index 562195455655ee98ae717f8a46475075006718d3..b0d5e353eff3446d99c5371cc76385de6185671e 100644 (file)
@@ -2,11 +2,15 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
+import React from 'react';
+
+export interface PickerIdProp {
+    pickerId: string;
+}
 
 export const pickerId =
     (id: string) =>
-        <P extends { pickerId: string }>(Component: React.ComponentType<P>) =>
+        <P extends PickerIdProp>(Component: React.ComponentType<P>) =>
             (props: P) =>
                 <Component {...props} pickerId={id} />;
                 
\ No newline at end of file