Refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ActionTypes } from '../reducers'
|
||||
import { ActionTypes, CustomAction } from '../reducers'
|
||||
import * as q from '../../../backend/src/Model'
|
||||
|
||||
export const selectTopic = (topic: q.TreeNode) => {
|
||||
export const selectTopic = (topic: q.TreeNode): CustomAction => {
|
||||
return {
|
||||
selectedTopic: topic,
|
||||
type: ActionTypes.selectTopic,
|
||||
|
||||
Reference in New Issue
Block a user