Skip to content

Commit

Permalink
fix(di): expose IRegistryComponents type
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Jun 21, 2021
1 parent 1622b63 commit d32a0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/di/di.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const registryHocMark = 'RegistryHoc'
export type HOC<T> = (WrappedComponent: ComponentType) => ComponentType<T>

type IRegistryEntity<T = any> = ComponentType<T> | IRegistryHOC<T>
type IRegistryComponents = Record<string, IRegistryEntity>
export type IRegistryComponents = Record<string, IRegistryEntity>

interface IRegistryHOC<T> extends React.FC<T> {
$symbol: typeof registryHocMark
Expand Down

0 comments on commit d32a0a7

Please sign in to comment.