import {tDirection} from "./type.base"; /** * 处理对象的方向函数 * @author 韦胜健 * @date 2022/4/4 17:52 */ export function handleDirection(direction: tDirection, handlers: Record T>): T { return handlers[direction](); }