@devfamily/admiral
Version:
Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
8 lines (7 loc) • 423 B
TypeScript
import React from 'react';
export interface Options {
navigateMode?: 'push' | 'replace';
}
declare type UrlState = Record<string, any>;
declare const useUrlState: <S extends UrlState = UrlState>(initialState?: S | (() => S) | undefined, options?: Options | undefined) => readonly [Partial<{ [key in keyof S]: any; }>, (s: React.SetStateAction<Partial<{ [key in keyof S]: any; }>>) => void];
export default useUrlState;