aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/actions/search.ts
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-06 12:11:19 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-06 12:11:19 +0100
commit77dccd31b32ee0a9a53b2186bae231069c5ab152 (patch)
treef90c5c524f1d3536a1f6ab665a7350739f590b7a /src/client/react/actions/search.ts
parent95041dffbd23fe81802efd5fb25cffe492cdb551 (diff)
Revert "Move to typescript"
This reverts commit f0c8cf0e79f003514fd65a70def5820205955a77.
Diffstat (limited to 'src/client/react/actions/search.ts')
-rw-r--r--src/client/react/actions/search.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/react/actions/search.ts b/src/client/react/actions/search.ts
deleted file mode 100644
index 45c31fb..0000000
--- a/src/client/react/actions/search.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-export interface InputChangeAction {
- type: 'SEARCH/INPUT_CHANGE',
- typedValue: string,
-}
-
-export const inputChange = (typedValue: string): InputChangeAction => ({
- type: 'SEARCH/INPUT_CHANGE',
- typedValue,
-});
-
-export interface ChangeSelectedResultAction {
- type: 'SEARCH/CHANGE_SELECTED_RESULT',
- relativeChange: 1 | -1,
-}
-
-/**
- * Change the selected result.
- * @param {+1/-1} relativeChange usually +1 or -1, the change relative to the
- * current result.
- */
-export const changeSelectedResult = (relativeChange: 1 | -1): ChangeSelectedResultAction => ({
- type: 'SEARCH/CHANGE_SELECTED_RESULT',
- relativeChange,
-});