diff --git a/types/activex-libreoffice/activex-libreoffice-tests.ts b/types/activex-libreoffice/activex-libreoffice-tests.ts index 87cf55eb8c..0ac06e67f3 100644 --- a/types/activex-libreoffice/activex-libreoffice-tests.ts +++ b/types/activex-libreoffice/activex-libreoffice-tests.ts @@ -129,7 +129,7 @@ function createStruct(strTypeName: K): LibreOffice.StructNameMap[K] { const classSize = coreReflection.forName(strTypeName); - const aStruct: [LibreOffice.StructNameMap[K]] = [] as any; + const aStruct: [LibreOffice.InstantiableNameMap[K]] = [] as any; classSize.createObject(aStruct); return aStruct[0]; } diff --git a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx index e742e41145..80a72bbcce 100644 --- a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx +++ b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx @@ -779,7 +779,7 @@ class MyCustomBody extends React.Component implements ModalBo getFieldValue() { const newRow: Partial = {}; this.props.columns.forEach((column, i) => { - newRow[column.field] = (this.refs[column.field] as HTMLInputElement).value; + newRow[column.field] = (this.refs[column.field] as HTMLInputElement).value as number & string; }, this); return newRow as Product; }