mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-31 05:57:33 +00:00
Fix errors from Microsoft/TypeScript#30769 (#34784)
This commit is contained in:
parent
6227f1fa8d
commit
b8d656e3ab
@ -129,7 +129,7 @@
|
||||
|
||||
function createStruct<K extends keyof LibreOffice.StructNameMap>(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];
|
||||
}
|
||||
|
||||
@ -779,7 +779,7 @@ class MyCustomBody extends React.Component<MyCustomBodyProps> implements ModalBo
|
||||
getFieldValue() {
|
||||
const newRow: Partial<Product> = {};
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user