Sobes.tech
Intern — Middle

Conversion of Man type to AgeType type

livecode

Task condition

It is necessary to transform the type Man so that it matches the declared type AgeType.

 type Man = {
    name: string;
    age: Age;
}

// { age: Age; }
// type AgeType =