Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optional fields are not required and fix stack overflow on extend #23

Merged
merged 3 commits into from
Mar 30, 2024

Conversation

sam-goodwin
Copy link
Owner

Closes #22
Closes #21

Fixes some type errors:

  1. Optional properties were still required to be provided
  2. TypeScript compiler would stack overflow when calling extend

@sam-goodwin sam-goodwin merged commit 5bea2da into main Mar 30, 2024
1 check passed
@sam-goodwin sam-goodwin deleted the sam/fix-22 branch March 30, 2024 21:42

const IS_ZOD_CLASS = Symbol.for("zod-class");

type Ctor<T = any> = {
[key: string]: any;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, i did this for debugging. Can be removed.

hepr pushed a commit to hepr/zod-class that referenced this pull request Aug 5, 2024
sam-goodwin#23)

* fix: optional fields are not required and fix stack overflow on extend

* chore: setuo github ci to build and test

* fix last step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant