-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Bug Report
π Search Terms
π Version & Regression Information
TS version: 4.8.4
β― Playground Link
Playground link with relevant code
π» Code
type T = {
foo?: string;
};
const a: T = {foo: undefined};
const b = {foo: '', ...a};
π Actual behavior
π Expected behavior
The type of b
should be:
{
foo?: string;
}
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug