Skip to content

Commit

Permalink
Javascript Blocks Types (#2975)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Hauser <[email protected]>
  • Loading branch information
GermanBluefox and foxriver76 authored Nov 27, 2024
1 parent 2c4baa4 commit 664d3c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/types-dev/objects.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,15 @@ declare global {
ignoreVersion?: string;
/** Sentry and other plugins */
plugins?: { [pluginName: string]: Record<string, any> };
/** Rules blocks for Javascript rules */
javascriptRules?: {
/** Translations */
i18n?: boolean | Record<string, Record<ioBroker.Languages, string>> | Record<string, string>;
/** Where to load the blocks */
url: string;
/** Blocks names */
name: string;
};

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

0 comments on commit 664d3c5

Please sign in to comment.