mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-19 00:27:45 +08:00

### What problem does this PR solve? fix: Remove kAModel #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
27 lines
787 B
TypeScript
27 lines
787 B
TypeScript
import { ChunkModelState } from '@/pages/add-knowledge/components/knowledge-chunk/model';
|
|
import { KFModelState } from '@/pages/add-knowledge/components/knowledge-file/model';
|
|
import { TestingModelState } from '@/pages/add-knowledge/components/knowledge-testing/model';
|
|
import { ChatModelState } from '@/pages/chat/model';
|
|
|
|
declare module 'lodash';
|
|
|
|
function useSelector<TState = RootState, TSelected = unknown>(
|
|
selector: (state: TState) => TSelected,
|
|
equalityFn?: (left: TSelected, right: TSelected) => boolean,
|
|
): TSelected;
|
|
|
|
export interface RootState {
|
|
chatModel: ChatModelState;
|
|
kFModel: KFModelState;
|
|
chunkModel: ChunkModelState;
|
|
testingModel: TestingModelState;
|
|
}
|
|
|
|
declare global {
|
|
type Nullable<T> = T | null;
|
|
}
|
|
|
|
declare module 'umi' {
|
|
export { useSelector };
|
|
}
|