File size: 333 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import type { PathsInState } from '../reducers/pathsReducer.js'

export const PATHS_INITIALIZE = 'PATHS_INITIALIZE'

export type InitializePathsResponse = {
  type: typeof PATHS_INITIALIZE
  data: PathsInState
}

export const initializePaths = (data: PathsInState): InitializePathsResponse => ({
  type: PATHS_INITIALIZE,
  data,
})