chore: Add support for using injectionTokens in global overrides

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-04-25 14:27:30 -04:00
1 parent 3532fc1dab
commit 6ae078c91d
4 files changed
+33 -19

No files matched your search

@@ -43,11 +43,12 @@ export const getRequestChannelListenerInjectable = <
getInjectable({
id: `${info.channel.id}-request-listener-${info.id}`,
instantiate: (di) => ({
id: `${info.channel.id}-request-listener-${info.id}`,
channel: info.channel,
handler: info.getHandler(di),
}),
instantiate: (di) =>
({
id: `${info.channel.id}-request-listener-${info.id}`,
channel: info.channel,
handler: info.getHandler(di),
} as RequestChannelListener<Channel>),
injectionToken: requestChannelListenerInjectionToken,
});