求助Vue-Cli3 + tsx 编译时ts报类型ERROR


#1
// vue-class-component

render () {
        return (
          <div class="vtx-postList">
            {
              this.posts.map((i) => {
                return (
                  <PostItem  post={i} />
                )
              })
            }
          </div>
        );
      }

ts版本3.2.1
vue-cli3

Type ‘{ post: IPost; type: string; post1: string; }’ is not assignable to type ‘Compone
ntOptions<Vue, DefaultData, DefaultMethods, DefaultComputed, PropsDefinition<Record
<string, any>>, Record<string, any>>’.
Property ‘post’ does not exist on type ‘ComponentOptions<Vue, DefaultData, DefaultMeth
ods, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>’.