Skip to content

TypeError: ConnectionSettingsManager.connectionProfiles(): ConnectionProfile[] seems to be like { [key: ConnectionProfilePath]: ConnectionProfile }

Hi,

we're using your package in our application and it helps us a lot. Thank you very much for creating it.

We've just switched to TypeScript and are now facing a problem: We're using the connectionProfiles Observable of the class ConnectionSettingsManager. This states to be of type ConnectionProfile[] but from our experience using the library in pure JS we noticed that in fact the type of the returned data is { [key: ConnectionProfilePath]: ConnectionProfile }.

Could you please check that and either state the correct type or fix the type of the returned data?

Thank you very much in advance!