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

InstantEntity does not allow dropping undefined keys #459

Closed
uriva opened this issue Nov 12, 2024 · 1 comment
Closed

InstantEntity does not allow dropping undefined keys #459

uriva opened this issue Nov 12, 2024 · 1 comment

Comments

@uriva
Copy link

uriva commented Nov 12, 2024

e.g. for

type MyType = InstantEntity<typeof db, "someType">;
const introEvent: MyType = {
  field: 123,
  optionalField: undefined,
};

works
but

const introEvent: MyType = {
  field: 123,
};

will be a typing error.

@stopachka
Copy link
Contributor

Hey @uriva -- starting in 0.17.4, optional fields should work! Let me know how it goes.

@uriva uriva closed this as completed Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants