Skip to content

Commit 8c7ec67

Browse files
committed
PERF-1865: undefined type
1 parent 2b2c8d4 commit 8c7ec67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interfaces/client_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export interface ClientData {
77
host?: string | undefined;
88
version?: string;
99
requestTimeout?: number;
10-
userAgent?: string;
10+
userAgent?: string | undefined;
1111
}

src/lokalise/base_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class BaseClient {
3030
tokenType = "",
3131
host,
3232
requestTimeout,
33-
userAgent,
33+
userAgent = undefined,
3434
}: ClientParams) {
3535
if (typeof apiKey !== "string" || apiKey.trim().length === 0) {
3636
throw new Error(

0 commit comments

Comments
 (0)