@milkio/astra 1.0.0-alpha.3 → 1.0.0-alpha.34

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.
Files changed (2) hide show
  1. package/index.ts +7 -7
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -70,30 +70,30 @@ export const createAstra = async <AstraOptions extends AstraOptionsInit, Generat
70
70
  return projectStatus.get(projectName)!.resolve(undefined);
71
71
  }
72
72
  } catch (error) {}
73
- }, 42);
73
+ }, 100);
74
74
  }
75
75
  return Array.from(projectStatus.values()).map((v) => v.promise);
76
76
  })(),
77
77
  ]);
78
78
 
79
- type Execute = <Path extends keyof Generated["routeSchema"]["$types"]>(
79
+ type Execute = <Path extends keyof Generated["routeSchema"]>(
80
80
  path: Path,
81
81
  options?: Mixin<
82
82
  ExecuteOptions,
83
83
  | {
84
- params?: Generated["routeSchema"]["$types"][Path]["params"];
84
+ params?: Generated["routeSchema"][Path]["types"]["params"];
85
85
  }
86
86
  | {
87
- params?: Partial<Generated["routeSchema"]["$types"][Path]["params"]>;
87
+ params?: Partial<Generated["routeSchema"][Path]["types"]["params"]>;
88
88
  generateParams: true;
89
89
  }
90
90
  >,
91
91
  ) => Promise<
92
- Generated["routeSchema"]["$types"][Path]["🐣"] extends boolean
92
+ Generated["routeSchema"][Path]["types"]["🐣"] extends boolean
93
93
  ? // action
94
- [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, Generated["routeSchema"]["$types"][Path]["result"], ExecuteResultsOption]
94
+ [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, Generated["routeSchema"][Path]["types"]["result"], ExecuteResultsOption]
95
95
  : // stream
96
- [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, AsyncGenerator<[Partial<Generated["rejectCode"]>, null] | [null, GeneratorGeneric<Generated["routeSchema"]["$types"][Path]["result"]>], ExecuteResultsOption>]
96
+ [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, AsyncGenerator<[Partial<Generated["rejectCode"]>, null] | [null, GeneratorGeneric<Generated["routeSchema"][Path]["types"]["result"]>], ExecuteResultsOption>]
97
97
  >;
98
98
 
99
99
  type MirrorWorld = Mixin<
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milkio/astra",
3
3
  "module": "index.ts",
4
- "version": "1.0.0-alpha.3",
4
+ "version": "1.0.0-alpha.34",
5
5
  "type": "module",
6
6
  "devDependencies": {
7
7
  "@types/bun": "latest"