我有一个post类定义为`@Tableclass post extends Model{@Columndeclare imgUrl:string
@Column declare userId: string @Column declare username: string @Column declare profileImgUrl: string
}`
但是,当我实际键入字段时,我总是发现自己必须回头查看模型的源代码,并导致很多错误,因为我忘记了字段
const post = new Post({ imgUrl: 'http://localhost/image.png', profileImgUrl: 'http://localhost/image.png', username: 'johnsmith', })
在本例中,我没有指定所有字段,但没有从vscode中得到错误
所以我的问题是,当我将鼠标悬停在类上时,我该怎么做才能显示所有字段,当我忘记字段时,我会给出错误,这样我就不必总是回头看源代码了