mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-24 03:06:12 +01:00
refactor(client): Refactors recent typescript changes for best practices (#763)
* create common types in client * remove unnecessary rules from eslint config * cleanup types * put back eslintrc rules
This commit is contained in:
parent
5828200197
commit
96d29f7390
32 changed files with 233 additions and 245 deletions
|
|
@ -1,6 +1,11 @@
|
|||
import { CleanupPreset, TPreset } from 'librechat-data-provider';
|
||||
import { TEndpointsConfig, TPreset } from 'librechat-data-provider';
|
||||
|
||||
const cleanupPreset = ({ preset: _preset, endpointsConfig = {} }: CleanupPreset): TPreset => {
|
||||
type TCleanupPreset = {
|
||||
preset: Partial<TPreset>;
|
||||
endpointsConfig?: TEndpointsConfig | Record<string, unknown>;
|
||||
};
|
||||
|
||||
const cleanupPreset = ({ preset: _preset, endpointsConfig = {} }: TCleanupPreset): TPreset => {
|
||||
const { endpoint } = _preset;
|
||||
|
||||
let preset = {} as TPreset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue