5htp 0.6.3-2 → 0.6.3-3
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/compiler/index.ts +7 -10
- package/package.json +1 -1
package/compiler/index.ts
CHANGED
|
@@ -273,17 +273,14 @@ export default class Compiler {
|
|
|
273
273
|
|
|
274
274
|
import { ${appClassIdentifier} as ${appClassIdentifier}Client } from "@/client";
|
|
275
275
|
import ${appClassIdentifier}Server from "@/server/.generated/app";
|
|
276
|
-
|
|
277
|
-
import { ApplicationProperties as ClientApplicationProperties } from "@client/app";
|
|
278
|
-
import { ApplicationProperties as ServerApplicationProperties } from "@server/app";
|
|
279
|
-
|
|
280
|
-
type ClientServices = Omit<${appClassIdentifier}Client, ClientApplicationProperties>;
|
|
281
|
-
type ServerServices = Omit<${appClassIdentifier}Server, ServerApplicationProperties | keyof ClientServices>;
|
|
282
|
-
|
|
283
|
-
type CombinedServices = ClientServices & ServerServices;
|
|
284
276
|
|
|
285
|
-
const
|
|
286
|
-
|
|
277
|
+
export const Router: ${appClassIdentifier}Client['Router'];
|
|
278
|
+
|
|
279
|
+
${sortedServices.map(service => service.name !== 'Router'
|
|
280
|
+
? `export const ${service.name}: ${appClassIdentifier}Server["${service.name}"];`
|
|
281
|
+
: ''
|
|
282
|
+
).join('\n')}
|
|
283
|
+
|
|
287
284
|
}
|
|
288
285
|
|
|
289
286
|
declare module '@models/types' {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.6.3-
|
|
4
|
+
"version": "0.6.3-3",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp.git",
|
|
7
7
|
"license": "MIT",
|