nuxt-supported-browsers
Version:
Prevet to load Nuxt.js app in unsupported old browsers
12 lines (11 loc) • 389 B
TypeScript
export interface BrowserInfo {
name: string;
version: number;
}
/**
* Detects the user's web browser based on the User-Agent string.
*
* @param {string} ua - The User-Agent string to parse and detect the browser from.
* @returns {BrowserInfo} - An object containing information about the detected browser.
*/
export declare function useDetectBrowser(ua: string): BrowserInfo;