Parcourir la source

5.3: Interface examples

Frederic G. MARAND il y a 5 ans
Parent
commit
651a2d2115
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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;
+}