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

Bug: A missing key and a key with a value of undefined are not considered the same #122

Open
North101 opened this issue Jan 12, 2022 · 0 comments

Comments

@North101
Copy link

Example:

interface Foo {
  foo?: string;
}

const foo1: Foo = {
  foo: undefined,
}

const foo2: Foo = {}

console.log(is<Foo>(foo1)); // false
console.log(is<Foo>(foo2)); // true

Should they not both be true?

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

1 participant