chore: perfect type definition (#940)
This commit is contained in:
parent
b346bd9b83
commit
5e0540077a
25 changed files with 97 additions and 70 deletions
|
|
@ -10,7 +10,7 @@ const PluginPage = () => {
|
|||
const { t } = useTranslation()
|
||||
const { data: plugins, mutate } = useSWR('/workspaces/current/tool-providers', fetchPluginProviders)
|
||||
|
||||
const Plugin_MAP: Record<string, any> = {
|
||||
const Plugin_MAP: Record<string, (plugin: PluginProvider) => JSX.Element> = {
|
||||
serpapi: (plugin: PluginProvider) => <SerpapiPlugin key='serpapi' plugin={plugin} onUpdate={() => mutate()} />,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue