2022-05-30 15:40:11 +04:00

11 lines
431 B
TypeScript

import { typify } from '../lib/teact/teactn';
import type { GlobalState, ActionPayloads, NonTypedActionNames } from './types';
const typed = typify<GlobalState, ActionPayloads, NonTypedActionNames>();
export const getGlobal = typed.getGlobal;
export const setGlobal = typed.setGlobal;
export const getActions = typed.getActions;
export const addActionHandler = typed.addActionHandler;
export const withGlobal = typed.withGlobal;