@arrirpc/codegen-rust 0.70.1 → 0.71.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -1551,8 +1551,8 @@ function rustHttpRpcFromSchema(schema, context) {
1551
1551
  if (schema.isDeprecated) {
1552
1552
  leading += "#[deprecated]\n";
1553
1553
  }
1554
- const params = schema.params ? validRustName(schema.params) : void 0;
1555
- const response = schema.response ? validRustName(schema.response) : void 0;
1554
+ const params = schema.params ? validRustName(schema.params) : undefined;
1555
+ const response = schema.response ? validRustName(schema.response) : undefined;
1556
1556
  if (schema.isEventStream) {
1557
1557
  return `${leading}pub async fn ${functionName}<OnEvent>(
1558
1558
  &self,
package/dist/index.d.cts CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
29
29
  typePrefix?: string;
30
30
  }
31
31
  declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
32
- declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, "clientVersion">): string;
32
+ declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
33
33
  declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
34
34
 
35
35
  export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
package/dist/index.d.mts CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
29
29
  typePrefix?: string;
30
30
  }
31
31
  declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
32
- declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, "clientVersion">): string;
32
+ declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
33
33
  declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
34
34
 
35
35
  export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
29
29
  typePrefix?: string;
30
30
  }
31
31
  declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
32
- declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, "clientVersion">): string;
32
+ declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
33
33
  declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
34
34
 
35
35
  export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
package/dist/index.mjs CHANGED
@@ -1543,8 +1543,8 @@ function rustHttpRpcFromSchema(schema, context) {
1543
1543
  if (schema.isDeprecated) {
1544
1544
  leading += "#[deprecated]\n";
1545
1545
  }
1546
- const params = schema.params ? validRustName(schema.params) : void 0;
1547
- const response = schema.response ? validRustName(schema.response) : void 0;
1546
+ const params = schema.params ? validRustName(schema.params) : undefined;
1547
+ const response = schema.response ? validRustName(schema.response) : undefined;
1548
1548
  if (schema.isEventStream) {
1549
1549
  return `${leading}pub async fn ${functionName}<OnEvent>(
1550
1550
  &self,
package/package.json CHANGED
@@ -21,9 +21,8 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "pathe": "^1.1.2",
25
- "@arrirpc/codegen-utils": "0.70.1"
24
+ "pathe": "^2.0.1",
25
+ "@arrirpc/codegen-utils": "0.71.1"
26
26
  },
27
- "devDependencies": {},
28
- "version": "0.70.1"
27
+ "version": "0.71.1"
29
28
  }