Skip to content

Commit

Permalink
feat: TrixtaActionResponseComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jacques-trixta committed Jul 16, 2021
1 parent f194375 commit b3b845f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trixta/trixta-js",
"version": "4.1.1",
"version": "4.1.2",
"description": "Javascript library to integrate Trixta",
"source": "src/index.ts",
"main": "dist/@trixta/trixta-js.cjs.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function TrixtaActionComponent({
children,
debugMode = false,
...rest
}: TrixtaActionComponentProps & DispatchProps & ConnectProps) {
}: TrixtaActionComponentProps &
DispatchProps &
ConnectProps &
Record<string, any>) {
trixtaDebugger({
type: TrixtaDebugType.Action,
debugMode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { makesSelectTrixtaActionResponseInstance } from '../../../selectors';
import {
TrixtaDebugType,
trixtaInstanceDebugger
trixtaInstanceDebugger,
} from '../../../TrixtaDebugger';
import { TrixtaState } from '../../../types';
import { TrixtaActionInstanceComponentProps } from './types';
Expand All @@ -15,7 +15,7 @@ function TrixtaActionInstanceComponent({
instance,
debugMode = false,
...props
}: TrixtaActionInstanceComponentProps & ConnectProps) {
}: TrixtaActionInstanceComponentProps & ConnectProps & Record<string, any>) {
trixtaInstanceDebugger({
type: TrixtaDebugType.Action,
debugMode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function TrixtaReactionComponent({
debugMode = false,
instances,
...rest
}: ConnectProps & TrixtaReactionComponentProps) {
}: ConnectProps & TrixtaReactionComponentProps & Record<string, any>) {
trixtaDebugger({
type: TrixtaDebugType.Reaction,
debugMode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ const TrixtaReactionInstanceComponent = ({
loading,
isReady,
...rest
}: ConnectProps & DispatchProps & TrixtaReactionInstanceComponentProps) => {
}: ConnectProps &
DispatchProps &
TrixtaReactionInstanceComponentProps &
Record<string, any>) => {
const response = get<TrixtaInstanceResponse>(instance, 'response', {
success: false,
error: false,
Expand Down

0 comments on commit b3b845f

Please sign in to comment.