You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
NestJS_Basic/ts_playground/03-interfaces.ts

16 lines
251 B

interface Person {
name: string;
age: number;
}
interface Developer extends Person {
skills: string[];
}
const dev: Developer = {
name: "DevUser",
age: 36,
skills: ["TS", "DotNet", "MAUI"]
};
console.log(dev);