Convert all store files from JavaScript to TypeScript
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
src/stores/loading.ts
Normal file
12
src/stores/loading.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useLoadingStore = defineStore('loadingStore', {
|
||||
state: () => ({
|
||||
isLoading: true,
|
||||
}),
|
||||
actions: {
|
||||
setIsLoading(isLoadingBoolean) {
|
||||
this.isLoading = isLoadingBoolean;
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user