removed usage of Partial in configuration schemas

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-07-28 16:06:18 +02:00
parent 7245b3e17e
commit 8f7b618a49
3 changed files with 15 additions and 15 deletions
+7 -7
View File
@@ -31,17 +31,17 @@ export interface Config {
/**
* Object with extra headers to be added to target requests.
*/
headers?: Partial<{
headers?: {
/** @visibility secret */
Authorization: string;
Authorization?: string;
/** @visibility secret */
authorization: string;
authorization?: string;
/** @visibility secret */
'X-Api-Key': string;
'X-Api-Key'?: string;
/** @visibility secret */
'x-api-key': string;
[key: string]: string;
}>;
'x-api-key'?: string;
[key: string]: string | undefined;
};
/**
* Changes the origin of the host header to the target URL. Default: true.
*/