Skip to content

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

@North101

Description

@North101

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions