mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Add struct for fire-dom-event
action (#9556)
This commit is contained in:
parent
e797c01761
commit
cc81239b9d
@ -7,6 +7,7 @@ import {
|
|||||||
array,
|
array,
|
||||||
literal,
|
literal,
|
||||||
enums,
|
enums,
|
||||||
|
type,
|
||||||
} from "superstruct";
|
} from "superstruct";
|
||||||
|
|
||||||
const actionConfigStructUser = object({
|
const actionConfigStructUser = object({
|
||||||
@ -47,6 +48,10 @@ const actionConfigStructNavigate = object({
|
|||||||
confirmation: optional(actionConfigStructConfirmation),
|
confirmation: optional(actionConfigStructConfirmation),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const actionConfigStructCustom = type({
|
||||||
|
action: literal("fire-dom-event"),
|
||||||
|
});
|
||||||
|
|
||||||
export const actionConfigStructType = object({
|
export const actionConfigStructType = object({
|
||||||
action: enums([
|
action: enums([
|
||||||
"none",
|
"none",
|
||||||
@ -64,4 +69,5 @@ export const actionConfigStruct = union([
|
|||||||
actionConfigStructUrl,
|
actionConfigStructUrl,
|
||||||
actionConfigStructNavigate,
|
actionConfigStructNavigate,
|
||||||
actionConfigStructService,
|
actionConfigStructService,
|
||||||
|
actionConfigStructCustom,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user