Skip to content

Commit

Permalink
fix(generic): set data as object rather any
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 13, 2020
1 parent 681fcb4 commit 30e8122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/@dataflow/generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from 'rxjs/operators';
import { AjaxResponse, ajax, AjaxRequest } from 'rxjs/ajax';

export type DataFlowNode = [any, any[]];
export type DataFlowNode = [object, any[]];

export abstract class Generic {
protected abstract cmd: string;
Expand Down Expand Up @@ -73,7 +73,7 @@ export abstract class Generic {
of(Generic.cacheData[this.cachePath]),
this._request([data, preErrors]).pipe(
map((rsp): DataFlowNode => [rsp, []]),
catchError((err): DataFlowNode => [null, [err]]),
catchError((err): DataFlowNode => [{}, [err]]),
tap((x: DataFlowNode) => {
Generic.cacheData[this.cachePath] = x;
})
Expand Down

0 comments on commit 30e8122

Please sign in to comment.