You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2023. It is now read-only.
@naajil-aamir the library doesn't currently provide any types. You can silence the error by creating react-ios-switch.d.ts with the following contents:
declare module 'react-ios-switch'{}
...make sure typescript is using the path where you save it in include inside your tsconfig.
For example, if I saved it at <project_root>/@types/react-ios-switch.d.ts, my tsconfig.json would have an include key with this:
When importing switch in react ts file, the error is shown.
The text was updated successfully, but these errors were encountered: