在typescript中,useTable行给出错误。该initialState属性给出了下面的错误
Type '{ pageSize: number; pageIndex: number; }' is not assignable to type 'PartialObject literal may only specify known properties, and 'pageSize' does not exist in type 'Partial<T
显然,在typescript中,可选参数和未定义的联合类型的参数之间存在差异 function test(s: string|undefined) {}
function test2(s?例如: // Intention: if type is the same as its Partial counterpart then the parameter can be made optionaltype MaybeOptional<T> = Partial<T> extends