Skip to content

Commit cb6f751

Browse files
committed
refactor: broker url and children props mandatory
1 parent 37b1d38 commit cb6f751

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/types.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { PropsWithChildren } from 'react';
2-
31
import { Store } from '@reduxjs/toolkit';
42
import {
53
IClientOptions,
@@ -13,9 +11,10 @@ export type IClientUnsubscribeOptions = Parameters<
1311
MqttClient['unsubscribe']
1412
>[1];
1513

16-
export interface WorkflowManagerProps extends PropsWithChildren {
17-
brokerUrl?: string;
14+
export interface WorkflowManagerProps {
15+
brokerUrl: string;
1816
options?: IClientOptions;
17+
children: React.ReactNode;
1918
}
2019

2120
export interface WorkflowManagerConfigProps {

0 commit comments

Comments
 (0)