react-device-detect
react-device-detect copied to clipboard
Replace `any` types for exported hooks & utils
- Type definitions for the API interface (hooks and utils)
- Rather than definitions being
(ua: string) => any
, provide accurate type definitions - Provides autocomplete and static type checking (preventing bugs) for library consumers
Thanks!