14 lines
374 B
TypeScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { type Ref } from 'vue';
export interface IWindowLocation {
hash?: string;
host?: string;
hostname?: string;
href?: string;
origin?: string;
pathname?: string;
port?: string;
protocol?: string;
search?: string;
}
2024-08-02 18:19:39 +08:00
export declare function useBrowserLocation(customWindow?: (Window & typeof globalThis) | null): Ref<IWindowLocation>;