浏览代码

type was missing

Raanan Weber 7 年之前
父节点
当前提交
9049427159
共有 1 个文件被更改,包括 2 次插入2 次删除
  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) {
             return visibilityFunction(this).then(() => {
                 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) {
             return visibilityFunction(this).then(() => {
                 this.onStateChange.notifyObservers(this);