From b8d656e3abe31a972710dc6fd907893245bb4f32 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 16 Apr 2019 15:29:21 -0700 Subject: [PATCH] Fix errors from Microsoft/TypeScript#30769 (#34784) --- types/activex-libreoffice/activex-libreoffice-tests.ts | 2 +- types/react-bootstrap-table/react-bootstrap-table-tests.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }