mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
chore: reformat SDK utility files
This commit is contained in:
@@ -64,9 +64,7 @@ export class GetServiceInterfaces<
|
||||
}
|
||||
}
|
||||
|
||||
export function getOwnServiceInterfaces(
|
||||
effects: Effects,
|
||||
): GetServiceInterfaces
|
||||
export function getOwnServiceInterfaces(effects: Effects): GetServiceInterfaces
|
||||
export function getOwnServiceInterfaces<Mapped>(
|
||||
effects: Effects,
|
||||
map: (interfaces: ServiceInterfaceFilled[]) => Mapped,
|
||||
@@ -77,10 +75,14 @@ export function getOwnServiceInterfaces<Mapped>(
|
||||
map?: (interfaces: ServiceInterfaceFilled[]) => Mapped,
|
||||
eq?: (a: Mapped, b: Mapped) => boolean,
|
||||
): GetServiceInterfaces<Mapped> {
|
||||
return new GetServiceInterfaces<Mapped>(effects, {}, {
|
||||
map: map ?? ((a) => a as Mapped),
|
||||
eq: eq ?? ((a, b) => deepEqual(a, b)),
|
||||
})
|
||||
return new GetServiceInterfaces<Mapped>(
|
||||
effects,
|
||||
{},
|
||||
{
|
||||
map: map ?? ((a) => a as Mapped),
|
||||
eq: eq ?? ((a, b) => deepEqual(a, b)),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
export function getServiceInterfaces(
|
||||
|
||||
Reference in New Issue
Block a user