UNPKG

@web3r/flowerkit

Version:

Tree-shakable JavaScript and TypeScript utility library for frontend/browser apps: DOM, events, arrays, objects, strings, date, JSON, and network helpers (ESM/CJS, SSR-friendly).

11 lines (10 loc) 408 B
export type TIsTouchDeviceArgs = Parameters<typeof isTouchDevice>; export type TIsTouchDeviceReturn = ReturnType<typeof isTouchDevice>; /** * Detects if the current device likely has a touch screen. * Avoids false positives from non-browser envs (like `jsdom`). * @example * const isTouchScreen = isTouchDevice(); // {boolean} * @returns {boolean} */ export declare const isTouchDevice: () => boolean;