Skip to content

Commit 1e9b8a9

Browse files
li-jia-nanafc163
andauthored
site(types): update any to SenderRef (ant-design#56487)
Co-authored-by: afc163 <afc163@gmail.com>
1 parent 82622f1 commit 1e9b8a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.dumi/theme/common/ThemeSwitch/PromptDrawer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useRef, useState } from 'react';
22
import { AntDesignOutlined, UserOutlined } from '@ant-design/icons';
33
import { Bubble, Sender } from '@ant-design/x';
4+
import type { SenderRef } from '@ant-design/x/es/sender';
45
import { Drawer, Flex, Typography } from 'antd';
56
import type { GetProp } from 'antd';
67

@@ -28,7 +29,8 @@ export interface PromptDrawerProps {
2829
const PromptDrawer: React.FC<PromptDrawerProps> = ({ open, onClose, onThemeChange }) => {
2930
const [locale] = useLocale(locales);
3031
const [inputValue, setInputValue] = useState('');
31-
const senderRef = useRef<any>(null);
32+
33+
const senderRef = useRef<SenderRef>(null);
3234

3335
const [submitPrompt, loading, prompt, resText, cancelRequest] = usePromptTheme(onThemeChange);
3436

0 commit comments

Comments
 (0)