mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(chord): createWorkers' route resolve type-checks in every program
This commit is contained in:
parent
8ff2cec028
commit
51bb8f5c06
1 changed files with 7 additions and 2 deletions
|
|
@ -107,9 +107,14 @@ export function createWorkers<P extends Principal, N extends string, Q extends P
|
|||
return false;
|
||||
}
|
||||
},
|
||||
// The principal is `options.principal`'s, a `P`.
|
||||
// The address is the route's, of `Kind` (the component works on any kind's); the principal is
|
||||
// `options.principal`'s, a `P`.
|
||||
resolve: (address, routing) =>
|
||||
component.resolve(address, routing) as Promise<{ link: Link; principal: P; trusted: true }>,
|
||||
component.resolve(address as unknown as Address<HostKind>, routing) as Promise<{
|
||||
link: Link;
|
||||
principal: P;
|
||||
trusted: true;
|
||||
}>,
|
||||
},
|
||||
context,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue