refactor: reorganize type definitions and improve type safety build: add lodash and @types/lodash as dependencies chore: update tsconfig and vite config for path aliases style: improve code organization and add documentation comments fix: correct type usage in LanguageSwitcher component perf: implement snackbar provider for global notifications test: add new test interfaces and utility functions ci: update pnpm-lock.yaml with new dependencies
26 lines
463 B
TypeScript
26 lines
463 B
TypeScript
export interface Pagination {
|
|
current: number;
|
|
pageSize: number;
|
|
total: number;
|
|
}
|
|
|
|
export interface BaseState {
|
|
pagination: Pagination;
|
|
searchString: string;
|
|
}
|
|
|
|
export interface IModalProps<T> {
|
|
showModal?(): void;
|
|
hideModal?(): void;
|
|
switchVisible?(visible: boolean): void;
|
|
visible?: boolean;
|
|
loading?: boolean;
|
|
onOk?(payload?: T): Promise<any> | void;
|
|
}
|
|
|
|
export interface ResponseType {
|
|
code: number;
|
|
message?: string;
|
|
data?: any;
|
|
}
|