Skip to content

Commit 0bf8825

Browse files
committed
feat: refactor type property to use getter for dynamic schema type resolution
1 parent c04a8e9 commit 0bf8825

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ts/src/map/datatype.map.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export const dataTypeMap = (klass: DataTypeClass): DataTypeProps => {
1818

1919
return {
2020
identifier,
21-
type: zodToTypeString(schema),
21+
get type() {
22+
return zodToTypeString(schema)
23+
},
2224
rules: zodToRules(schema),
2325
name,
2426
displayMessage,

0 commit comments

Comments
 (0)