mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve UX for shell env sync failure (#6644)
* Move files to be under a feature folder Signed-off-by: Sebastian Malton <sebastian@malton.name> * Add error notification on shell sync failure Signed-off-by: Sebastian Malton <sebastian@malton.name> * Improve error handling of case where match is not found Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
27fb128c05
commit
65b14b9e7b
15 files changed
+85
-21
No files matched your search
@@ -10,6 +10,12 @@ export interface SendMessageToChannel {
|
||||
<Message>(channel: MessageChannel<Message>, message: Message): void;
|
||||
}
|
||||
|
||||
export type MessageChannelSender<Channel> = Channel extends MessageChannel<void | undefined>
|
||||
? () => void
|
||||
: Channel extends MessageChannel<infer Message>
|
||||
? (message: Message) => void
|
||||
: never;
|
||||
|
||||
export const sendMessageToChannelInjectionToken = getInjectionToken<SendMessageToChannel>({
|
||||
id: "send-message-to-message-channel",
|
||||
});
|
||||
Reference in new issue
Block a user