@arrirpc/codegen-ts 0.51.0 → 0.51.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -106,12 +106,12 @@ import { ${importParts.join(", ")} } from '@arrirpc/client';
106
106
 
107
107
  interface ${clientName}Options {
108
108
  baseUrl?: string;
109
- headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
109
+ headers?: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>);
110
110
  }
111
111
 
112
112
  export class ${clientName} {
113
113
  private readonly baseUrl: string;
114
- private readonly headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>)
114
+ private readonly headers: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>)
115
115
  private readonly clientVersion = '${rpcOptions.versionNumber}';
116
116
  ${serviceFieldParts.join("\n ")}
117
117
 
@@ -238,7 +238,7 @@ function tsServiceFromDefinition(name, schema, options) {
238
238
  });
239
239
  return `export class ${name}Service {
240
240
  private readonly baseUrl: string;
241
- private readonly headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
241
+ private readonly headers: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>);
242
242
  private readonly clientVersion = '${options.versionNumber}';
243
243
  ${serviceFieldParts.join("\n ")}
244
244
 
package/dist/index.mjs CHANGED
@@ -100,12 +100,12 @@ import { ${importParts.join(", ")} } from '@arrirpc/client';
100
100
 
101
101
  interface ${clientName}Options {
102
102
  baseUrl?: string;
103
- headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
103
+ headers?: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>);
104
104
  }
105
105
 
106
106
  export class ${clientName} {
107
107
  private readonly baseUrl: string;
108
- private readonly headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>)
108
+ private readonly headers: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>)
109
109
  private readonly clientVersion = '${rpcOptions.versionNumber}';
110
110
  ${serviceFieldParts.join("\n ")}
111
111
 
@@ -232,7 +232,7 @@ function tsServiceFromDefinition(name, schema, options) {
232
232
  });
233
233
  return `export class ${name}Service {
234
234
  private readonly baseUrl: string;
235
- private readonly headers: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
235
+ private readonly headers: Record<string, string | undefined> | (() => Record<string, string | undefined> | Promise<Record<string, string | undefined>>);
236
236
  private readonly clientVersion = '${options.versionNumber}';
237
237
  ${serviceFieldParts.join("\n ")}
238
238
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/codegen-ts",
3
- "version": "0.51.0",
3
+ "version": "0.51.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -23,10 +23,10 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "prettier": "^3.3.2",
26
- "@arrirpc/codegen-utils": "0.51.0",
27
- "@arrirpc/schema": "0.51.0"
26
+ "@arrirpc/codegen-utils": "0.51.2",
27
+ "@arrirpc/schema": "0.51.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@arrirpc/client": "0.51.0"
30
+ "@arrirpc/client": "0.51.2"
31
31
  }
32
32
  }