@leo-h/create-nodejs-app 1.0.31 → 1.0.33
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@leo-h/create-nodejs-app",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.33",
|
4
4
|
"packageManager": "pnpm@9.15.9",
|
5
5
|
"author": "Leonardo Henrique <leonardo0507.business@gmail.com>",
|
6
6
|
"description": "Create a modern Node.js app with TypeScript using one command.",
|
@@ -9,9 +9,11 @@ export type ZodRestrictFieldsShape<Target> = {
|
|
9
9
|
};
|
10
10
|
|
11
11
|
export type ZodUnrestrictShape<Target> = {
|
12
|
-
[K in keyof Target]?:
|
12
|
+
[K in keyof Target | (string & {})]?: K extends keyof Target
|
13
|
+
? ZodType<Target[K]>
|
14
|
+
: ZodTypeAny;
|
13
15
|
};
|
14
16
|
|
15
17
|
export type ZodUnrestrictFieldsShape<Target> = {
|
16
|
-
[K in keyof Target]?: ZodTypeAny;
|
18
|
+
[K in keyof Target | (string & {})]?: ZodTypeAny;
|
17
19
|
};
|
@@ -38,7 +38,7 @@ export async function routesPlugin(app: FastifyInstance) {
|
|
38
38
|
for (const controller of controllers) {
|
39
39
|
if (!controller.imports.default) {
|
40
40
|
throw new Error(
|
41
|
-
`The controller file in "${controller.pathFromSrc}" does not have default
|
41
|
+
`The controller file in "${controller.pathFromSrc}" does not have default export.`,
|
42
42
|
);
|
43
43
|
}
|
44
44
|
|