[pull] master from marmelab:master#20
Conversation
[Chore] Upgrade TypeScript to v5.8
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Reviewer's GuideThis PR strengthens TypeScript typings across core utilities and hooks, simplifies internal enums, fixes subclass and inference patterns, updates GraphQL type casting, adjusts project configuration, and bumps TypeScript dependencies. Updated Class Diagram for HttpErrorclassDiagram
Error <|-- HttpError
class HttpError {
+status: any
+body: any
+constructor(message: string, status: any, body?: any)
}
class Error{
<<Superclass>>
message: string
}
Class Diagram for assertions.ts Type Predicate UpdatesclassDiagram
class TypeAssertions {
<<Utility>>
+isUrl(value: any): value is string
+isImageUrl(value: any): value is string
+isEmail(value: any): value is string
+isArray(value: any): value is Array~any~
+valuesAreArray(values: any[]): values is Array~any~[]
+isDate(value: any): value is Date
+valuesAreDate(values: any[]): values is Date[]
+isDateString(value: any): value is string
+valuesAreDateString(values: any[]): values is string[]
+isObject(value: any): value is object
+valuesAreObject(values: any[]): values is Array~object~
}
Class Diagram for ColorButtons.tsx - ColorType RefactoringclassDiagram
class ColorButtonsConstants {
<<Constants>>
FONT: "font"
BACKGROUND: "background"
}
class ColorType {
<<TypeAlias>>
type: "font" | "background"
}
class ColorButtons {
- colorType: ColorType
- editor: any
- translate: any
- showColorChoiceDialog: boolean
- setColorType: Function
+ displayColorChoiceDialog(type: ColorType): void
+ onClickFontButton(): void
+ onClickHighlightButton(): void
}
class ColorChoiceDialog {
+ editor: any
+ open: boolean
+ anchorEl: any
+ colorType: ColorType
+ onClose: Function
+ selectColor(color: string): void
}
ColorButtons ..> ColorType : uses
ColorChoiceDialog ..> ColorType : uses
ColorButtons ..> ColorButtonsConstants : uses
ColorChoiceDialog ..> ColorButtonsConstants : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Improve TypeScript type safety across core hooks, inference, and UI components; replace enum with string constants in Rich Text ColorButtons; bump TypeScript to 5.8.3 with erasableSyntaxOnly
Enhancements:
Build: