Refactor TypeScript interfaces and types for consistency and readability
Gitea Auto Deploy / Deploy-Container (push) Successful in 49s
Gitea Auto Deploy / Deploy-Container (push) Successful in 49s
- Reformatted multiple TypeScript interfaces across various files to ensure consistent spacing and indentation. - Updated `changelog.ts`, `enka.ts`, `extraData.ts`, `gloval.d.ts`, `index.ts`, `lightconeDetail.ts`, `metaData.ts`, `mics.ts`, `modelConfig.ts`, `monsterDetail.ts`, `peakDetail.ts`, `pfDetail.ts`, `psConnect.ts`, `relicDetail.ts`, `showcase.ts`, `srtools.ts`, and `zod/index.ts` for improved code clarity. - Ensured all interfaces are properly formatted with consistent line breaks and spacing. - Made minor adjustments to the `tsconfig.json` file for formatting consistency.
This commit is contained in:
+16
-16
@@ -1,22 +1,22 @@
|
||||
import { CharacterInfoCardType, EnkaResponse } from '@/types';
|
||||
import { create } from 'zustand'
|
||||
|
||||
interface EnkaState {
|
||||
selectedCharacters: CharacterInfoCardType[];
|
||||
enkaData: EnkaResponse | null;
|
||||
import { CharacterInfoCardType, EnkaResponse } from '@/types';
|
||||
import { create } from 'zustand'
|
||||
|
||||
interface EnkaState {
|
||||
selectedCharacters: CharacterInfoCardType[];
|
||||
enkaData: EnkaResponse | null;
|
||||
uidInput: string;
|
||||
setSelectedCharacters: (newListAvatar: CharacterInfoCardType[]) => void;
|
||||
setEnkaData: (newEnkaData: EnkaResponse | null) => void;
|
||||
setUidInput: (newUidInput: string) => void;
|
||||
}
|
||||
|
||||
const useEnkaStore = create<EnkaState>((set) => ({
|
||||
selectedCharacters: [],
|
||||
enkaData: null,
|
||||
uidInput: "",
|
||||
setUidInput: (newUidInput: string) => set({ uidInput: newUidInput }),
|
||||
setSelectedCharacters: (newListAvatar: CharacterInfoCardType[]) => set({ selectedCharacters: newListAvatar }),
|
||||
setUidInput: (newUidInput: string) => void;
|
||||
}
|
||||
|
||||
const useEnkaStore = create<EnkaState>((set) => ({
|
||||
selectedCharacters: [],
|
||||
enkaData: null,
|
||||
uidInput: "",
|
||||
setUidInput: (newUidInput: string) => set({ uidInput: newUidInput }),
|
||||
setSelectedCharacters: (newListAvatar: CharacterInfoCardType[]) => set({ selectedCharacters: newListAvatar }),
|
||||
setEnkaData: (newEnkaData: EnkaResponse | null) => set({ enkaData: newEnkaData }),
|
||||
}));
|
||||
|
||||
|
||||
export default useEnkaStore;
|
||||
|
||||
Reference in New Issue
Block a user