title: Ant design type script Input field validation not working
body: <p>I tried to do react type script for  <a href="https://ant.design/components/form/" rel="nofollow noreferrer">Ant design   input  field validation</a> , its not working i got this error</p>
  
  <blockquote>
    <p>Property 'name' is missing in type '{}' but required in type
    'Readonly'</p>
  </blockquote>
  
  <p><strong>This is my code</strong> </p>
  
  <pre><code>import * as React from "react";
  import {Button, Card, Col,  Form, Icon, Input, Row,} from "antd";
  import moment from 'moment';
  import "./style.css";
  
  
  
  const {TextArea} = Input;
  const {Option} = Select;
  
  const InputGroup = Input.Group;
  
  
  
  
  
  export namespace Bookform {
      export interface Props {
         name:string;
  
      }
  }
  
  export class Bookform extends React.Component&lt;Bookform.Props, any,any&gt; {
  
  
  
      formRef: any = React.createRef();
  
      componentDidMount() {
          this.formRef.current.setFieldsValue({
              username: 'Bamboo',
          });
      }
      render() {
  
          return (
  
              &lt;div className="my-book"&gt;
                  &lt;Form onSubmit={this.onSaveBook} name="base"  ref={this.formRef}&gt;
  
                      &lt;Row gutter={[8, 8]}&gt;
                          &lt;Card size="small" &gt;
                              &lt;Col span={12}&gt;
  
                                  &lt;Form.Item 
                                      name="username" rules={[{ required: true }]}&gt;
                                    &lt;Input placeholder="My book"/&gt;
  
                              &lt;/Form.Item&gt;
                              &lt;/Col&gt;
  
                          &lt;/Card&gt;
                      &lt;/Row&gt;
           &lt;div&gt;
                          &lt;Button type="primary" htmlType="submit" block&gt;&lt;Icon type="save"/&gt;Add book&lt;/Button&gt;
  
  
                      &lt;/div&gt;
  
                  &lt;/Form&gt;
              &lt;/div&gt;
  
  
          );
      }
  }
  </code></pre>