Skip to content

Commit

Permalink
Merge pull request #99 from Phuire-Research/UI
Browse files Browse the repository at this point in the history
UI
  • Loading branch information
REllEK-IO committed Oct 19, 2023
2 parents ec889b7 + 7eeb316 commit 3d12efa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ActionStrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ export const createAsyncMethodDebounceWithConcepts =
* createMethodWithConcepts - This will allow your method to have the most recent concepts to be accessed via the asyncMethod function.
* createAsyncMethod - Handled differently than the rest, you will have to use the passed controller to fire your actions back into the action stream.
* createAsyncMethodWithConcepts - Will also have access to the most recent concepts.
*Note if you are implementing your own debounceAction how these methods work. They are handling a passed conclude from debounceAction within their map/switchMap*

*Note if you are implementing your own debounceAction, pay attention to how these method helpers work. They are handling a passed conclude from debounceAction within their map/switchMap*
* createMethodDebounce - After the first action, this will filter actions within the duration to be set to the conclude action.
* createMethodDebounceWithConcepts - Will filter actions within the duration while providing access to the most recent concepts.
* createAsyncMethodDebounce - Will not disengage the initial ActionController, but will allow debounced actions to pass through when filtered as conclude actions. And will fire the first action upon its own conditions are met asynchronously.
Expand Down
2 changes: 1 addition & 1 deletion src/concepts/experiment/experiment.concept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const createExperimentState = (): ExperimentState => {
};

export const createExperimentConcept = (
state: any,
state: unknown,
qualities?: Quality[],
principles?: PrincipleFunction[],
mode?: Mode[]) => {
Expand Down
2 changes: 1 addition & 1 deletion src/concepts/ownership/ownership.mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { permissiveMode, blockingMode } from '../axium/axium.mode';
import { checkIn, clearStubs, ownershipShouldBlock, updateAddToPendingActions } from '../../model/ownership';
import { ActionStrategy, strategyFailed } from '../../model/actionStrategy';
import { UnifiedSubject } from '../../model/stagePlanner';
import { AppendActionListToDialogPayload, axiumAppendActionListToDialog, axiumAppendActionListToDialogType } from '../axium/qualities/appendActionListToDialog.quality';
import { axiumAppendActionListToDialog } from '../axium/qualities/appendActionListToDialog.quality';
import { AxiumState } from '../axium/axium.concept';
import { failureConditions, strategyData_appendFailure } from '../../model/actionStrategyData';

Expand Down
4 changes: 3 additions & 1 deletion src/model/debounceAction.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
MonoTypeOperatorFunction,
Observable,
Expand Down Expand Up @@ -93,7 +95,7 @@ function createOperatorSubscriber<T>(
destination: Subscriber<any>,
onNext?: (value: T) => void,
onComplete?: () => void,
onError?: (err: any) => void,
onError?: (err: unknown) => void,
onFinalize?: () => void
): Subscriber<T> {
return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
Expand Down

0 comments on commit 3d12efa

Please sign in to comment.