nope/test/modules/exportFunctiont.ts

7 lines
246 B
TypeScript
Raw Normal View History

2020-11-10 07:56:22 +00:00
import { exportFunctionToDispatcher } from "../../lib/decorators/dispatcherDecorators";
async function func(a: number, b: number){
return a+b;
}
export const exportedFunction = exportFunctionToDispatcher(func, {
id: 'exportedFunction'
});