Fixing an issue that type 'null' is not assignable to validateStatus …#8
Fixing an issue that type 'null' is not assignable to validateStatus …#8MitchLewis930 wants to merge 1 commit intopr_028_beforefrom
Conversation
…xios#2773) Co-authored-by: Xianming Zhong <chinesedfan@qq.com> Co-authored-by: Jay <jasonsaayman@gmail.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
PR_028
PR Type
Bug fix
Description
Fix TypeScript type definition for
validateStatuscallbackAllow
nullreturn type in addition tobooleanCorrect type signature to match actual implementation behavior
Diagram Walkthrough
File Walkthrough
index.d.ts
Update validateStatus callback return type signatureindex.d.ts
validateStatusparameter type from(status: number) => booleanto
((status: number) => boolean | null)nullin addition tobooleanvaluesvalidateStatusreturnsnull