7 lines
246 B
TypeScript
7 lines
246 B
TypeScript
import { exportFunctionToDispatcher } from "../../lib/decorators/dispatcherDecorators";
|
|
async function func(a: number, b: number){
|
|
return a+b;
|
|
}
|
|
export const exportedFunction = exportFunctionToDispatcher(func, {
|
|
id: 'exportedFunction'
|
|
}); |