If I described params in react-native-modalfy.d.ts - it means that they are required for my modal. Is it possible to have an error if I call openModal() without params if my modal require them? Because currently I have to check each param in modal like params?.title, params?.items etc. but it makes no sense.
If I described params in
react-native-modalfy.d.ts- it means that they are required for my modal. Is it possible to have an error if I callopenModal()without params if my modal require them? Because currently I have to check each param in modal likeparams?.title,params?.itemsetc. but it makes no sense.