What does it mean in the curly braces after typescript function (inter): {area: number}?

typescript function (config:SquareConfig): what is the meaning in the curly braces after {color:string, area: number}? Isn"t the
config attribute specified by the interface SquareConfig? What is the function of
{color:string, area: number}

interface SquareConfig {
    color?: string
    width?: number
}
// {color:string, area: number}
function createSquare(config: SquareConfig): {color:string, area: number}{

}

is naturally the type of return value of this function. It is specified here that the return value must be color of string type and area of number type object

.
Menu