react-device-detect icon indicating copy to clipboard operation
react-device-detect copied to clipboard

Replace `any` types for exported hooks & utils

Open SpainTrain opened this issue 2 years ago • 0 comments

  1. Type definitions for the API interface (hooks and utils)
  2. Rather than definitions being (ua: string) => any, provide accurate type definitions
  3. Provides autocomplete and static type checking (preventing bugs) for library consumers

Thanks!

SpainTrain avatar Jul 16 '22 20:07 SpainTrain