// Error: Property 'age' in type 'AsNumber' is not assignable// Error: Property 'age' in type 'AsNumber' is not assignable
// to the same property in base type 'AgeIsNotANumber'.// to the same property in base type 'AgeIsNotANumber'.
// Type 'number' is not assignable to type '() => string'.// Type 'number' is not assignable to type '() => string'.
}
class NotAsNumber implements AgeIsANumber, AgeIsNotANumber {
age() { return ""; }
//~//~
// Error: Property 'age' in type 'NotAsNumber' is not assignable// Error: Property 'age' in type 'NotAsNumber' is not assignable
// to the same property in base type 'AgeIsANumber'.// to the same property ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.