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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user