diff --git a/src/ts/@overflow/commons/redux/api_async_action.ts b/src/ts/@overflow/commons/redux/api_async_action.ts deleted file mode 100644 index 1c0fb48..0000000 --- a/src/ts/@overflow/commons/redux/api_async_action.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { - Action, -} from './action'; - -// API Action Type -export type ASYNC_REQUEST = '@overflow/commons/async/REQUEST'; -export const ASYNC_REQUEST: ASYNC_REQUEST = '@overflow/commons/async/REQUEST'; - -export interface AsyncRequestPayload { - method: string; - params?: any[]; -} - -export type asyncRequestActions = (method: string, ...params: any[]) => Action; -export const asyncRequestActions: asyncRequestActions = (method: string, ...params: any[]): Action => { - return { - type: ASYNC_REQUEST, - payload: { - method: method, - params: params, - }, - }; -}; diff --git a/src/ts/@overflow/commons/redux/api_rest_action.ts b/src/ts/@overflow/commons/redux/api_rest_action.ts deleted file mode 100644 index 3152217..0000000 --- a/src/ts/@overflow/commons/redux/api_rest_action.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { - Action, -} from './action'; - -// REST Action Type -export type REST_REQUEST = '@overflow/commons/rest/REQUEST'; -export const REST_REQUEST: REST_REQUEST = '@overflow/commons/rest/REQUEST'; - -export interface RESTRequestPayload { - entry: string; - params?: any[]; -} - -export type restRequestActions = (entry: string, ...params: any[]) => Action; -export const restRequestActions: restRequestActions = (entry: string, ...params: any[]): Action => { - return { - type: REST_REQUEST, - payload: { - entry: entry, - params: params, - }, - }; -};