ahooks-vue
Version:
11 lines (10 loc) • 372 B
TypeScript
import { Ref } from 'vue-demi';
export interface UseUrlStateOptions {
localStorageKey?: string;
detectNumber?: boolean;
}
interface UrlState {
[key: string]: any;
}
export declare function useUrlState<S extends UrlState = UrlState>(routerPushFn: (path: string) => void, initialState?: S | (() => S), options?: UseUrlStateOptions): Ref<S>;
export {};