@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.
- package/index.ts +7 -7
- 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
|
-
},
|
|
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"]
|
|
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"]["
|
|
84
|
+
params?: Generated["routeSchema"][Path]["types"]["params"];
|
|
85
85
|
}
|
|
86
86
|
| {
|
|
87
|
-
params?: Partial<Generated["routeSchema"]["
|
|
87
|
+
params?: Partial<Generated["routeSchema"][Path]["types"]["params"]>;
|
|
88
88
|
generateParams: true;
|
|
89
89
|
}
|
|
90
90
|
>,
|
|
91
91
|
) => Promise<
|
|
92
|
-
Generated["routeSchema"]["
|
|
92
|
+
Generated["routeSchema"][Path]["types"]["🐣"] extends boolean
|
|
93
93
|
? // action
|
|
94
|
-
[Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, Generated["routeSchema"]["
|
|
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"]["
|
|
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<
|