@schirkan/reactron-interfaces
Advanced tools
Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "@schirkan/reactron-interfaces", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "interfaces for reactron modules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,11 +8,16 @@ import { SizeProp } from '@fortawesome/fontawesome-svg-core'; | ||
export interface IExtraWebComponentProps { | ||
className?: string; | ||
style?: React.CSSProperties; | ||
} | ||
export interface IReactronComponentContext extends IModuleContext { | ||
readonly componentName: string; | ||
readonly moduleApiPath: string; | ||
readonly electron: electron.AllElectron; | ||
readonly topics: IPubSub; | ||
readonly componentLoader: IComponentLoader; | ||
renderComponent: (props: Partial<IWebComponentOptions>) => any; | ||
renderLoading: (text?: string, iconSize?: SizeProp) => any; | ||
readonly componentName: string; | ||
readonly moduleApiPath: string; | ||
readonly electron: electron.AllElectron; | ||
readonly topics: IPubSub; | ||
readonly componentLoader: IComponentLoader; | ||
renderComponent: (props: Partial<IWebComponentOptions> & IExtraWebComponentProps) => any; | ||
renderLoading: (text?: string, iconSize?: SizeProp) => any; | ||
} |
16330
375