-
Notifications
You must be signed in to change notification settings - Fork 5
/
services.ts
26 lines (25 loc) · 1.21 KB
/
services.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { AppConfiguration } from ".";
import { AxiosStatic } from "axios";
import { AppConfigurationRenderer } from "./app-configuration-renderer";
import { AppSessionStateAccessor, AppSessionStateMonitor } from "./app-session";
import { HtmlEditorApiClient } from "./html-editor-api-client";
import { DopplerRestApiClient } from "./doppler-rest-api-client";
import { AssetManifestClient } from "./asset-manifest-client";
import { DopplerLegacyClient } from "./doppler-legacy-client";
import { EditorExtensionsBridge } from "./editor-extensions-bridge";
// TODO: Determine if defining this type based on a list of types possible,
// for example based on this type:
// type AppServicesTuple = [ Window, AppConfiguration ]
export type AppServices = {
window: Window & typeof globalThis;
axiosStatic: AxiosStatic;
appConfiguration: AppConfiguration;
appConfigurationRenderer: AppConfigurationRenderer;
htmlEditorApiClient: HtmlEditorApiClient;
dopplerRestApiClient: DopplerRestApiClient;
dopplerLegacyClient: DopplerLegacyClient;
appSessionStateAccessor: AppSessionStateAccessor;
appSessionStateMonitor: AppSessionStateMonitor;
assetManifestClient: AssetManifestClient;
editorExtensionsBridge: EditorExtensionsBridge;
};