Sobes.tech
Intern — Middle

Determining the AgeType based on the Man type

livecode

Task condition

It is required, using the already declared type Man, to create a new type AgeType, which will represent an object with a single field age of type Age.

//Node.js
type Man = {
    name: string;
    age: Age;
}

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