diff options
Diffstat (limited to 'src/console/reducers')
-rw-r--r-- | src/console/reducers/index.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/console/reducers/index.ts b/src/console/reducers/index.ts index 048a24f..f1508bb 100644 --- a/src/console/reducers/index.ts +++ b/src/console/reducers/index.ts @@ -1,11 +1,14 @@ import * as actions from '../actions'; +import Completions from "../Completions"; +import CompletionType from "../../shared/CompletionType"; export interface State { mode: string; messageText: string; consoleText: string; + completionTypes: CompletionType[]; completionSource: string; - completions: any[], + completions: Completions; select: number; viewIndex: number; } @@ -14,6 +17,7 @@ const defaultState = { mode: '', messageText: '', consoleText: '', + completionTypes: [], completionSource: '', completions: [], select: -1, @@ -68,6 +72,7 @@ export default function reducer( return { ...state, mode: 'command', consoleText: action.text, + completionTypes: action.completionTypes, completions: []}; case actions.CONSOLE_SHOW_FIND: return { ...state, |