// tslint:disable:max-line-length import { Action, ErrorAction, makeActionFunction, makeErrorActionFunction } from "../utils"; export const OPEN_MODAL = "CORE/OPEN_MODAL"; export const CLOSE_MODAL = "CORE/CLOSE_MODAL"; export const SET_GITHUB_TOKEN = "SET_GITHUB_TOKEN"; export const ADD_TRANSFORM = "ADD_TRANSFORM"; export const REMOVE_TRANSFORM = "REMOVE_TRANSFORM"; export const ERROR = "CORE/ERROR"; export const TOGGLE_SIDEBAR = "TOGGLE_SIDEBAR"; export const ADD_EDITOR = "ADD_EDITOR"; export type OpenModal = Action ; export type CloseModal = Action ; export type SetGithubTokenAction = Action ; export type AddTransform = Action ; export type RemoveTransform = Action ; export type CoreError = ErrorAction; export type ToggleSidebar = Action; export type AddEditor = Action; export const openModal = makeActionFunction (OPEN_MODAL); export const closeModal = makeActionFunction (CLOSE_MODAL); export const setGithubToken = makeActionFunction (SET_GITHUB_TOKEN); export const addTransform = makeActionFunction (ADD_TRANSFORM); export const removeTransform = makeActionFunction (REMOVE_TRANSFORM); export const coreError = makeErrorActionFunction (ERROR); export const toggleSidebar = makeActionFunction (TOGGLE_SIDEBAR); export const addEditor = makeActionFunction (ADD_EDITOR);