phero-hq / phero

Full-stack type-safety with pure TypeScript

Home Page:https://phero.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support export of arrow function in service

jim-lub opened this issue · comments

commented

Exporting an arrow function in a service throws a Samen error. We should support this functionality.

import { createService } from "@samen/server"

const aad = async (): Promise<void> => {}

export const aadService = createService({
  aad,
})
S145: ParserModel not implemented yet: `async (): Promise<void> => { }` (kind:214)

With the release of v0.10.0 this should be fixed. Closing this ticket. Please reopen if you still encounter issues.