mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
export interface LocationSensorState {
|
|
trigger: string;
|
|
state?: any;
|
|
length?: number;
|
|
hash?: string;
|
|
host?: string;
|
|
hostname?: string;
|
|
href?: string;
|
|
origin?: string;
|
|
pathname?: string;
|
|
port?: string;
|
|
protocol?: string;
|
|
search?: string;
|
|
}
|
|
declare const useLocation: () => LocationSensorState;
|
|
export default useLocation;
|