Browse Source

5.3: Interface examples

Frederic G. MARAND 5 years ago
parent
commit
651a2d2115
1 changed files with 10 additions and 0 deletions
  1. 10 0
      app/enterprise.ts

+ 10 - 0
app/enterprise.ts

@@ -0,0 +1,10 @@
+interface Employee {
+  name: string;
+  title: string;
+}
+
+interface Manager extends Employee {
+  departement: string;
+  numOfEmployees: number;
+  scheduleMeeting: (topic: string) => void;
+}