diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-03-14 13:24:01 +0000 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-05-05 07:27:44 +0000 |
commit | bc890c55bfbd6d1aa4ece5b0ef96a9ab6d358ad7 (patch) | |
tree | 4b268cfb3040ee9b32c7d22d5e8fd47fac3d46bb /src/console/completion/actions.ts | |
parent | 823bad63384de90c11653f0afa253cc5d0e19239 (diff) |
Get completion types on component initialization
Diffstat (limited to 'src/console/completion/actions.ts')
-rw-r--r-- | src/console/completion/actions.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/console/completion/actions.ts b/src/console/completion/actions.ts index 59d1a04..0c5e1f1 100644 --- a/src/console/completion/actions.ts +++ b/src/console/completion/actions.ts @@ -1,17 +1,10 @@ -import CompletionType from "../../shared/CompletionType"; import Completions from "../Completions"; -export const INIT_COMPLETIONS = "reset.completions"; export const SET_COMPLETION_SOURCE = "set.completion.source"; export const SET_COMPLETIONS = "set.completions"; export const COMPLETION_NEXT = "completion.next"; export const COMPLETION_PREV = "completion.prev"; -export interface InitCompletionAction { - type: typeof INIT_COMPLETIONS; - completionTypes: CompletionType[]; -} - export interface SetCompletionSourceAction { type: typeof SET_COMPLETION_SOURCE; completionSource: string; @@ -31,20 +24,11 @@ export interface CompletionPrevAction { } export type CompletionAction = - | InitCompletionAction | SetCompletionSourceAction | SetCompletionsAction | CompletionNextAction | CompletionPrevAction; -export const initCompletion = ( - completionTypes: CompletionType[] -): InitCompletionAction => { - return { - type: INIT_COMPLETIONS, - completionTypes, - }; -}; export const setCompletionSource = ( query: string ): SetCompletionSourceAction => { |