2023-01-11 11:26:08 +03:00

13 lines
282 B
TypeScript

function wrapElementsMap<T extends Record<string, string>>(arg: T) {
return arg;
}
const elementsToActions = wrapElementsMap({
btnCalculate: 'calculate',
btnCreateKP: 'create-kp',
});
export default elementsToActions;
export type Elements = keyof typeof elementsToActions;