Skip to content

Commit

Permalink
removed get listener
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Sep 1, 2024
1 parent 7a1c89a commit b87042f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ export const schema = <T extends ZodType<any>>(
})

return new Proxy(target, {
get(target, prop, receiver) {
const value = Reflect.get(target, prop, receiver)
return isObject(value)
? createProxy(value, parentPath.concat(prop))
: value
},
set(target, prop, value, receiver) {
const originalObject = schemaMeta.get(zodSchema)!
.initialState as z.infer<T>
Expand Down

0 comments on commit b87042f

Please sign in to comment.