This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed
Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,6 @@ const HyperMediaControls: ComponentType<
5959 </ Card >
6060) ;
6161
62- export default connect < HyperMediaControlsProps , HyperMediaControlsState > (
62+ export default connect < HyperMediaControlsState , HyperMediaControlsProps > (
6363 state$ ,
6464) ( HyperMediaControls ) ;
Original file line number Diff line number Diff line change @@ -227,4 +227,4 @@ const Notifications: ComponentType<NotificationsProps> = ({
227227 </ div >
228228) ;
229229
230- export default connect < { } , NotificationsState > ( state$ ) ( Notifications ) ;
230+ export default connect < NotificationsState > ( state$ ) ( Notifications ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const createLogger = <TState>() => (state: TState) =>
2626 // tslint:disable-next-line:no-console
2727 console . debug ( state , typeof state ) ;
2828
29- export const connect = < TProps extends object , TState extends object > (
29+ export const connect = < TState extends object , TProps extends object = { } > (
3030 state$ : Observable < TState > ,
3131) => (
3232 WrappedComponent : ComponentType < TProps & TState > ,
Original file line number Diff line number Diff line change @@ -82,4 +82,4 @@ const Index: ComponentType<IndexState & HalViewerProps> = ({
8282 </ section >
8383) ;
8484
85- export default connect < HalViewerProps , IndexState > ( state$ ) ( Index ) ;
85+ export default connect < IndexState , HalViewerProps > ( state$ ) ( Index ) ;
Original file line number Diff line number Diff line change @@ -100,4 +100,4 @@ const Stream: ComponentType<StreamState & HalViewerProps> = ({
100100 </ section >
101101) ;
102102
103- export default connect < HalViewerProps , StreamState > ( state$ ) ( Stream ) ;
103+ export default connect < StreamState , HalViewerProps > ( state$ ) ( Stream ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ const StreamBrowserComponent: ComponentType<
2727 < StreamBrowser loading = { loading } streams = { streams } />
2828) ;
2929
30- export default connect < HalViewerProps , StreamBrowserState > ( state$ ) (
30+ export default connect < StreamBrowserState , HalViewerProps > ( state$ ) (
3131 StreamBrowserComponent ,
3232) ;
Original file line number Diff line number Diff line change @@ -346,6 +346,6 @@ const StreamMessage: ComponentType<StreamMessageState & HalViewerProps> = ({
346346 </ section >
347347) ;
348348
349- export default connect < HalViewerProps , StreamMessageState > ( state$ ) (
349+ export default connect < StreamMessageState , HalViewerProps > ( state$ ) (
350350 StreamMessage ,
351351) ;
Original file line number Diff line number Diff line change @@ -140,6 +140,6 @@ const StreamMetadata: StatelessComponent<
140140 </ section >
141141) ;
142142
143- export default connect < HalViewerProps , StreamMetadataState > ( state$ ) (
143+ export default connect < StreamMetadataState , HalViewerProps > ( state$ ) (
144144 StreamMetadata ,
145145) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,6 @@ class UnrecognizedRelViewer extends React.PureComponent<
7676 }
7777}
7878
79- export default connect < HalViewerProps , UnrecognizedRelViewerState > ( state$ ) (
79+ export default connect < UnrecognizedRelViewerState , HalViewerProps > ( state$ ) (
8080 UnrecognizedRelViewer ,
8181) ;
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ const MarkdownViewer: ComponentType<MarkdownViewerState> = ({ body }) => (
2828 </ Remarkable >
2929 </ Typography >
3030) ;
31- export default connect < { } , MarkdownViewerState > ( state$ ) ( MarkdownViewer ) ;
31+ export default connect < MarkdownViewerState > ( state$ ) ( MarkdownViewer ) ;
You can’t perform that action at this time.
0 commit comments