From 35f1f664afb832c616bc37f2ab97553e72fbcda7 Mon Sep 17 00:00:00 2001 From: Zev Spitz Date: Sun, 10 Sep 2017 17:09:38 +0200 Subject: [PATCH] Expicit use of generics in test file --- types/activex-libreoffice/activex-libreoffice-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/activex-libreoffice/activex-libreoffice-tests.ts b/types/activex-libreoffice/activex-libreoffice-tests.ts index d5d537d67d..bafe014f59 100644 --- a/types/activex-libreoffice/activex-libreoffice-tests.ts +++ b/types/activex-libreoffice/activex-libreoffice-tests.ts @@ -125,7 +125,7 @@ objCellText.insertString(objCellCursor, strText, false); } - function createStruct(strTypeName: K) { + function createStruct(strTypeName: K): LibreOffice.StructNameMap[K] { const classSize = coreReflection.forName(strTypeName); const aStruct: [LibreOffice.StructNameMap[K]] = [] as any; classSize.createObject(aStruct);