Skip to content

Commit

Permalink
remove unnecessary typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mccraigmccraig committed Nov 4, 2023
1 parent 1f0abed commit eb4102d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refine_map_multi_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ export const UserService = Context.Tag<UserService, UserServiceI>("UserService")

// as const is required to prevent the k from being widened to a string type
// and to ensure the specs array is interpreted as a tuple
const getOrgStepSpec: StepSpec<"org", { data: { org_nick: string } }, string, OrgService, OrgServiceI, "get"> =
const getOrgStepSpec =
{
k: "org" as const,
f: (d: { data: { org_nick: string } }) => d.data.org_nick,
svc: OrgService,
svcFn: "get" as const
}
const getUserStepSpec: StepSpec<"user", { data: { user_id: string }, org: Org }, { org_id: string, user_id: string }, UserService, UserServiceI, "get"> =
const getUserStepSpec =
{
k: "user" as const,
// note that this fn depends on the output of a getOrgStep
Expand Down

0 comments on commit eb4102d

Please sign in to comment.