mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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,
|
||||
literal,
|
||||
enums,
|
||||
type,
|
||||
} from "superstruct";
|
||||
|
||||
const actionConfigStructUser = object({
|
||||
@ -47,6 +48,10 @@ const actionConfigStructNavigate = object({
|
||||
confirmation: optional(actionConfigStructConfirmation),
|
||||
});
|
||||
|
||||
const actionConfigStructCustom = type({
|
||||
action: literal("fire-dom-event"),
|
||||
});
|
||||
|
||||
export const actionConfigStructType = object({
|
||||
action: enums([
|
||||
"none",
|
||||
@ -64,4 +69,5 @@ export const actionConfigStruct = union([
|
||||
actionConfigStructUrl,
|
||||
actionConfigStructNavigate,
|
||||
actionConfigStructService,
|
||||
actionConfigStructCustom,
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user