npm run eslint-fix-only-show-error

pull/22575/head
Asuka Minato 10 months ago
parent e7b5c20cc2
commit 395efbd6fb

@ -1,8 +1,8 @@
import { useEffect, useRef } from 'react'
import cn from '@/utils/classnames'
type AutoHeightTextareaProps =
& React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>
type AutoHeightTextareaProps
= & React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>
& { outerClassName?: string }
const AutoHeightTextarea = (

@ -393,8 +393,8 @@ export const WorkflowWithInnerContext = memo(({
)
})
type WorkflowWithDefaultContextProps =
Pick<WorkflowProps, 'edges' | 'nodes'>
type WorkflowWithDefaultContextProps
= Pick<WorkflowProps, 'edges' | 'nodes'>
& {
children: React.ReactNode
}

@ -36,21 +36,21 @@ import type { LayoutSliceShape } from './layout-slice'
import { createLayoutSlice } from './layout-slice'
import type { WorkflowSliceShape as WorkflowAppSliceShape } from '@/app/components/workflow-app/store/workflow/workflow-slice'
export type Shape =
ChatVariableSliceShape &
EnvVariableSliceShape &
FormSliceShape &
HelpLineSliceShape &
HistorySliceShape &
NodeSliceShape &
PanelSliceShape &
ToolSliceShape &
VersionSliceShape &
WorkflowDraftSliceShape &
WorkflowSliceShape &
InspectVarsSliceShape &
LayoutSliceShape &
WorkflowAppSliceShape
export type Shape
= ChatVariableSliceShape
& EnvVariableSliceShape
& FormSliceShape
& HelpLineSliceShape
& HistorySliceShape
& NodeSliceShape
& PanelSliceShape
& ToolSliceShape
& VersionSliceShape
& WorkflowDraftSliceShape
& WorkflowSliceShape
& InspectVarsSliceShape
& LayoutSliceShape
& WorkflowAppSliceShape
type CreateWorkflowStoreParams = {
injectWorkflowStoreSliceFn?: StateCreator<WorkflowAppSliceShape>

@ -21,8 +21,8 @@ type IState = {
timezone: string
}
type IAction =
| { type: 'failed', payload: null }
type IAction
= | { type: 'failed', payload: null }
| { type: 'invitation_code', value: string }
| { type: 'interface_language', value: string }
| { type: 'timezone', value: string }

@ -7,8 +7,8 @@ import useTimestamp from '@/hooks/use-timestamp'
export type inputType = 'input' | 'select' | 'textarea'
export type metadataType = DocType | 'originInfo' | 'technicalParameters'
type MetadataMap =
Record<
type MetadataMap
= Record<
metadataType,
{
text: string

Loading…
Cancel
Save