fix(types): improve type inference and correct some return types (#1983)
fix(types): improve type inference and correct some return types (#1983)

* fix(types): improve type inference and correct some return types

* fixup! fix(types): improve type inference and correct some return types

* fixup! fix(types): improve type inference and correct some return types
limonte/sweetalert2