As you may know bootstrap 5 has been released and for opening modal via JavaScript the official website offer the code below.
var myModal = new bootstrap.Modal(document.getElementById('myModal'), options)
myModal.toggle()
The problem is I am developing front-end application via Angular 11 strict mode so in this case typescript does not allow me to use new bootstrap.Modal because it is not exist.
So please tell me any solutions.