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);