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
+3 -3
View File
@@ -77,17 +77,17 @@ export interface Config {
*/
connection:
| string
| Partial<{
| {
/**
* Password that belongs to the client User
* @visibility secret
*/
password: string;
password?: string;
/**
* Other connection settings
*/
[key: string]: unknown;
}>;
};
/** Database name prefix override */
prefix?: string;
/**
+5 -5
View File
@@ -42,13 +42,13 @@ export interface Config {
username: string;
/** @visibility secret */
apiKey: string;
extraRequestHeaders?: Partial<{
extraRequestHeaders?: {
/** @visibility secret */
Authorization: string;
Authorization?: string;
/** @visibility secret */
authorization: string;
[key: string]: string;
}>;
authorization?: string;
[key: string]: string | undefined;
};
}[];
};
}
+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.
*/