@arrirpc/codegen-dart 0.48.0 → 0.48.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -220,7 +220,7 @@ function dartHttpRpcFromSchema(key, def, _opts) {
220
220
  if (def.response) {
221
221
  returnTypeName = codegenUtils.pascalCase(def.response);
222
222
  if (def.isEventStream) {
223
- returnType = `Future<EventSource<${returnTypeName}>>`;
223
+ returnType = `EventSource<${returnTypeName}>`;
224
224
  } else {
225
225
  returnType = `Future<${returnTypeName}>`;
226
226
  }
package/dist/index.mjs CHANGED
@@ -218,7 +218,7 @@ function dartHttpRpcFromSchema(key, def, _opts) {
218
218
  if (def.response) {
219
219
  returnTypeName = pascalCase(def.response);
220
220
  if (def.isEventStream) {
221
- returnType = `Future<EventSource<${returnTypeName}>>`;
221
+ returnType = `EventSource<${returnTypeName}>`;
222
222
  } else {
223
223
  returnType = `Future<${returnTypeName}>`;
224
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/codegen-dart",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@arrirpc/codegen-utils": "0.48.0",
26
- "@arrirpc/schema": "0.48.0"
25
+ "@arrirpc/codegen-utils": "0.48.2",
26
+ "@arrirpc/schema": "0.48.2"
27
27
  }
28
28
  }