Pārlūkot izejas kodu

5.3: Interface examples

Frederic G. MARAND 5 gadi atpakaļ
vecāks
revīzija
651a2d2115
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  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;
+}