feat(plugins/pagerduty): add ClientApiDependencies type

* have ClientApiConfig join ClientApiDependencies with custom
  configuration

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
Alec Jacobs
2022-06-03 09:46:39 -07:00
parent 56926b6f1e
commit 67bfd75de1
+5 -2
View File
@@ -81,12 +81,15 @@ export type OnCallsResponse = {
oncalls: OnCall[];
};
export type ClientApiConfig = {
eventsBaseUrl?: string;
export type ClientApiDependencies = {
discoveryApi: DiscoveryApi;
fetchApi: FetchApi;
};
export type ClientApiConfig = ClientApiDependencies & {
eventsBaseUrl?: string;
};
export type RequestOptions = {
method: string;
headers: HeadersInit;