You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several of newer useful TypeScript features are of limited use when writing JavaScript. As an example, the workaround for the recently re-opened #41631 is to use as const, which is not available in JS. Therefore I suggest to add the as const assertion to JS. For this purpose, the @type JSDoc could be reused:
constid1=`my-tree.0.${someString}`;// inferred as string/** @type {const} */constid1=`my-tree.0.${someString}`;// type: `my-tree.0.${string}`
In iobroker, objects in the database have different types that can be distinguished by how the ID is shaped. The different object types take different properties, so type-checking this would go a long way to reduce errors.
Activity
jcalz commentedon Feb 19, 2021
#30445 ?
AlCalzone commentedon Feb 19, 2021
Damn, my search must not be working :(