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

t.allows() returns false for extra keys, even with onUndeclaredKey("delete"). #1250

Open
TizzySaurus opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TizzySaurus
Copy link
Contributor

Report a bug

🧩 Context

  • ArkType version: arktype-2.0.0-rc.33
  • TypeScript version (5.1+): 5.6.3
  • Other context you think may be relevant (JS flavor, OS, etc.): N/A

πŸ§‘β€πŸ’» Repro

const t = type({foo: "string"}).onUndeclaredKey("delete");
console.log(t.allows({foo: "hi", bar: 3)) // false
@TizzySaurus TizzySaurus added the bug Something isn't working label Jan 9, 2025
@github-project-automation github-project-automation bot moved this to To do in arktypeio Jan 9, 2025
@ssalbdivad ssalbdivad moved this from To do to Implemented in arktypeio Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Implemented
Development

No branches or pull requests

2 participants