arnnis / react-native-toast-notifications

Toast component for React Native, supports Android, iOS and Web
563 stars 89 forks source link

fix(TypeScript): Remove unused '@ts-expect-error' directive #150

Closed mohandere closed 2 years ago

mohandere commented 2 years ago

Hi, In one of our project we are using Typescript 3.6.0. While running tsc -p ts.config.json i am getting below error

node_modules/react-native-toast-notifications/src/utils/useDimensions.ts:15:7 - error TS2578: Unused '@ts-expect-error' directive.
15       // @ts-expect-error - React Native >= 0.65
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/react-native-toast-notifications/src/utils/useDimensions.ts:17:9 - error TS2578: Unused '@ts-expect-error' directive.
17         // @ts-expect-error
           ~~~~~~~~~~~~~~~~~~~
Found 2 errors.

This commit fixes these errors.