Quellcode durchsuchen

type was missing

Raanan Weber vor 7 Jahren
Ursprung
Commit
9049427159
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Viewer/src/templateManager.ts

+ 2 - 2
Viewer/src/templateManager.ts

@@ -142,7 +142,7 @@ export class Template {
 
 
     }
     }
 
 
-    public show(visibilityFunction?: (template) => Promise<Template>): Promise<Template> {
+    public show(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template> {
         if (visibilityFunction) {
         if (visibilityFunction) {
             return visibilityFunction(this).then(() => {
             return visibilityFunction(this).then(() => {
                 this.onStateChange.notifyObservers(this);
                 this.onStateChange.notifyObservers(this);
@@ -156,7 +156,7 @@ export class Template {
         }
         }
     }
     }
 
 
-    public hide(visibilityFunction?: (template) => Promise<Template>): Promise<Template> {
+    public hide(visibilityFunction?: (template: Template) => Promise<Template>): Promise<Template> {
         if (visibilityFunction) {
         if (visibilityFunction) {
             return visibilityFunction(this).then(() => {
             return visibilityFunction(this).then(() => {
                 this.onStateChange.notifyObservers(this);
                 this.onStateChange.notifyObservers(this);