Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function validate(msg: any): HostToClient {
return guard(
dispatch('msgType', { publish: publicationDecoder, env_init: envDecoder })
)(msg);
}
export function validate(msg: any): ClientToHost {
return guard(
dispatch('msgType', {
publish: publicationDecoder,
registeredKeyFired: keyDownDecoder,
client_started: startedDecoder,
navRequest: navRequestDecoder,
toastRequest: toastDecoder
})
)(msg);
}