Closed txlfreedom closed 2 years ago
Type error: Type 'string' is not assignable to type 'undefined'. TS2322
172 | type="number" 173 | onChange={action((e: React.ChangeEvent<HTMLInputElement>) => {
174 | this.camera[inputItem.key] = e.target.value; | ^ 175 | })} 176 | value={this.camera[inputItem.key] as string} 177 | required
遇到相同的问题
Type error: Type 'string' is not assignable to type 'undefined'. TS2322