Skip to content

Commit 4518ee6

Browse files
committed
Return-type stringify function
1 parent d275248 commit 4518ee6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [2025-09-19] [Return-type stringify function](https://github.com/rubriclab/shapes/commit/e1533f6af045115b549a9df8569ac1fd702e9a4a)
12
- [2025-09-17] [bump](https://github.com/RubricLab/shapes/commit/f65e4d6300f3cb7e67feb7fd979e0355f2170184)
23
- [2025-07-25] [rework scoped shape](https://github.com/RubricLab/shapes/commit/76f70ee65df6547626cc37b03713b4e0d8b65d23)
34
- [2025-07-24] [add gitignore](https://github.com/RubricLab/shapes/commit/898ca78f854d62764f83244e6abf8f8882cb9516)

lib/shapes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function shapeOf(type: $ZodType, scope?: Scope): string {
109109
}
110110

111111
export function metaZod(type: $ZodType) {
112-
function shape(type: $ZodType) {
112+
function shape(type: $ZodType): string {
113113
const def = (type as $ZodTypes)._zod.def
114114

115115
switch (def.type) {
@@ -171,5 +171,6 @@ export function metaZod(type: $ZodType) {
171171
}
172172
}
173173
}
174+
174175
return shape(type)
175176
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"simple-git-hooks": {
1818
"post-commit": "bun x @rubriclab/package post-commit"
1919
},
20-
"version": "0.0.6"
20+
"version": "0.0.7"
2121
}

0 commit comments

Comments
 (0)