removed usage of Partial in configuration schemas
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Vendored
+3
-3
@@ -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;
|
||||
/**
|
||||
|
||||
Vendored
+5
-5
@@ -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;
|
||||
};
|
||||
}[];
|
||||
};
|
||||
}
|
||||
|
||||
Vendored
+7
-7
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user