Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export interface LabeledEnvInit extends LabeledMsg {
/** Message identifier */
msgType: 'env_init';
/** Environment data */
msg: SetupData;
}
/* @external */
const envDecoder: Decoder = object({
msgType: constant<'env_init'>('env_init'),
msg: object({
locale: string,
hostRootUrl: string,
assignedRoute: string,
registeredKeys: optional(
array(
object({
key: string,
altKey: optional(boolean),
ctrlKey: optional(boolean),
metaKey: optional(boolean),
shiftKey: optional(boolean)
})
)
),
custom: mixed
})
});
export { startedDecoder, envDecoder };
/**