11 lines
426 B
TypeScript
11 lines
426 B
TypeScript
import { typify } from '../lib/teact/teactn';
|
|
import { 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;
|