From 4f588b21be772b5742e90c7445cb1da1eb766d74 Mon Sep 17 00:00:00 2001 From: crusader Date: Sun, 24 Dec 2017 19:45:09 +0900 Subject: [PATCH] ing --- .../commons/redux/api_async_action.ts | 23 ------------------- .../commons/redux/api_rest_action.ts | 23 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 src/ts/@overflow/commons/redux/api_async_action.ts delete mode 100644 src/ts/@overflow/commons/redux/api_rest_action.ts 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, - }, - }; -};