Use Record type (#7798)

This commit is contained in:
Paulus Schoutsen
2020-11-25 10:40:32 +01:00
committed by GitHub
parent f6cb1ffe20
commit 1d13947e71
27 changed files with 45 additions and 45 deletions

View File

@@ -29,14 +29,14 @@ export interface ScriptConfig {
export interface EventAction {
event: string;
event_data?: { [key: string]: any };
event_data_template?: { [key: string]: any };
event_data?: Record<string, any>;
event_data_template?: Record<string, any>;
}
export interface ServiceAction {
service: string;
entity_id?: string;
data?: { [key: string]: any };
data?: Record<string, any>;
}
export interface DeviceAction {