Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f769c5

Browse files
krisantrobusPixeledCode
andauthoredMar 10, 2025··
fix(types): add correct types for react 19 codemod changes (#4266)
* fix(types): add correct types for react 19 codemod changes * feat(progress-bar): add interval type --------- Co-authored-by: PixeledCode <[email protected]>
1 parent d5bf0dc commit 9f769c5

File tree

55 files changed

+153
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+153
-129
lines changed
 

‎packages/paste-core/components/ai-chat-log/src/useAIChatLogger.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { AIMessageVariants } from "./AIMessageContext";
66
export type AIChat = {
77
id: string;
88
variant: AIMessageVariants;
9-
content: React.ReactElement<any>;
9+
content: React.ReactElement<HTMLElement>;
1010
};
1111

1212
export type AIPartialIDChat = Omit<AIChat, "id"> & Partial<Pick<AIChat, "id">>;

‎packages/paste-core/components/alert/src/Alert.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface AlertProps extends HTMLPasteProps<"div"> {
112112
element?: BoxProps["element"];
113113
}
114114

115-
const renderAlertIcon = (variant: AlertVariants, element: string, title: string): React.ReactElement<any> => {
115+
const renderAlertIcon = (variant: AlertVariants, element: string, title: string): React.ReactElement<HTMLElement> => {
116116
switch (variant) {
117117
case AlertVariants.ERROR:
118118
return (

0 commit comments

Comments
 (0)
Please sign in to comment.