sveltekit-device-detector
Version:
Detect device type and render your component according to it
8 lines (7 loc) • 467 B
TypeScript
export declare const checkDeviceType: (type: string) => DeviceType;
export declare const getCurrentBrowser: (name: string) => boolean;
export declare const setUserAgent: (userAgent: string) => any;
export declare const mockUserAgent: (userAgent: string) => void;
export declare const setDefaults: (p: string, d?: string) => string;
export declare const getNavigatorInstance: () => false | Navigator;
export declare const isIOS13Check: (type: string) => boolean | "";