Trong ứng dụng phản ứng và bản in của tôi, tôi sử dụng : onChange={(e) => data.motto = (e.target as any).value}.
Làm cách nào để xác định chính xác các kiểu chữ cho lớp, vì vậy tôi sẽ không phải hack theo cách của mình xung quanh hệ thống loại any?
export interface InputProps extends React.HTMLProps<Input> {
...
}
export class Input extends React.Component<InputProps, {}> {
}
Nếu tôi đặt target: { value: string };tôi nhận được:
ERROR in [default] /react-onsenui.d.ts:87:18
Interface 'InputProps' incorrectly extends interface 'HTMLProps<Input>'.
  Types of property 'target' are incompatible.
    Type '{ value: string; }' is not assignable to type 'string'.
          