initial cleanup
This commit is contained in:
1 parent
2d31df88f0
commit
f781ef4fd6
325 files changed
+1903
-1000
No files matched your search
@@ -3,7 +3,7 @@ import { writable } from 'svelte/store';
|
||||
// Placeholder function for urlHashStore
|
||||
// In a real application, this would handle URL hash parameters
|
||||
// and return a Svelte store that reflects those parameters.
|
||||
export function urlHashStore(initialValue: Record<string, any>) {
|
||||
export function urlHashStore(initialValue: Record<string, unknown>) {
|
||||
const { subscribe, set, update } = writable(initialValue);
|
||||
|
||||
// In a full implementation, you would add logic here to:
|
||||
@@ -18,6 +18,7 @@ export function urlHashStore(initialValue: Record<string, any>) {
|
||||
set,
|
||||
update,
|
||||
// You might want to add methods to easily update specific hash parameters
|
||||
updateParam: (key: string, value: any) => update((current) => ({ ...current, [key]: value }))
|
||||
updateParam: (key: string, value: unknown) =>
|
||||
update((current) => ({ ...current, [key]: value }))
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user