We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2c8d4 commit 8c7ec67Copy full SHA for 8c7ec67
src/interfaces/client_data.ts
@@ -7,5 +7,5 @@ export interface ClientData {
7
host?: string | undefined;
8
version?: string;
9
requestTimeout?: number;
10
- userAgent?: string;
+ userAgent?: string | undefined;
11
}
src/lokalise/base_client.ts
@@ -30,7 +30,7 @@ export class BaseClient {
30
tokenType = "",
31
host,
32
requestTimeout,
33
- userAgent,
+ userAgent = undefined,
34
}: ClientParams) {
35
if (typeof apiKey !== "string" || apiKey.trim().length === 0) {
36
throw new Error(
0 commit comments