@@ -178,7 +178,13 @@ export interface DateRange {
endDate: string | Date,
column: string
}
-export interface Storage {
+export interface StorageLocation {
type: string,
url: string
+export interface ObservableStorage {
+ type: "observable",
+ ref: Observable<any>
+}
+
+export type Storage = StorageLocation| ObservableStorage
@@ -10,7 +10,7 @@ import _ = require("lodash")
let query = new SearchService()
-let mongoStorage : any = {
+let mongoStorage : Storage = {
type: `MongoDB`,
url: `mongodb://192.168.100.59:27017/fromEnzo`