DataSources: minor typescript cleanups and comments (#16860)

* datasource interface cleanup

* more types

* use PluginInclude
This commit is contained in:
Ryan McKinley
2019-05-02 21:26:30 -07:00
committed by Torkel Ödegaard
parent 3e6104f45a
commit ece4d2201c
6 changed files with 23 additions and 78 deletions

View File

@@ -330,7 +330,8 @@ export interface QueryHint {
}
/**
* Data Source instance edit model
* Data Source instance edit model. This is returned from:
* /api/datasources
*/
export interface DataSourceSettings {
id: number;
@@ -354,7 +355,8 @@ export interface DataSourceSettings {
/**
* Frontend settings model that is passed to Datasource constructor. This differs a bit from the model above
* as this data model is available to every user who has access to a data source (Viewers+).
* as this data model is available to every user who has access to a data source (Viewers+). This is loaded
* in bootData (on page load), or from: /api/frontend/settings
*/
export interface DataSourceInstanceSettings {
id: number;