Closed Offpics closed 3 years ago
I want to export toast from a file with predefined options. It works, however I encounter an eslint error coming from @typescript-eslint.
toast
Minimal code generating the error:
// toast/index.tsx export { toast } from 'react-hot-toast';
// index.tsx import { toast } from './toast'; toast('Hello World'); // ERROR (eslint: @typescript-eslint): Unsafe call of `any` typed value.
I'm new to typescript and I'm not sure how to fix it. Is it a bug on my side or in react-hot-toast implementation?
react-hot-toast
Please delete this issue
I want to export
toast
from a file with predefined options. It works, however I encounter an eslint error coming from @typescript-eslint.Minimal code generating the error:
I'm new to typescript and I'm not sure how to fix it. Is it a bug on my side or in
react-hot-toast
implementation?