Skip to content

Commit 664d3c5

Browse files
Javascript Blocks Types (#2975)
Co-authored-by: Max Hauser <[email protected]>
1 parent 2c4baa4 commit 664d3c5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/types-dev/objects.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,15 @@ declare global {
797797
ignoreVersion?: string;
798798
/** Sentry and other plugins */
799799
plugins?: { [pluginName: string]: Record<string, any> };
800+
/** Rules blocks for Javascript rules */
801+
javascriptRules?: {
802+
/** Translations */
803+
i18n?: boolean | Record<string, Record<ioBroker.Languages, string>> | Record<string, string>;
804+
/** Where to load the blocks */
805+
url: string;
806+
/** Blocks names */
807+
name: string;
808+
};
800809

801810
// Make it possible to narrow the object type using the custom property
802811
custom?: undefined;

0 commit comments

Comments
 (0)