Closed pboguslawski closed 1 year ago
I don't know why it's doing this, and it didn't until recently... hmm...
Btw, I'm using a workaround right now, just checking that typeof snackbar.open === 'function'
, but that's not ideal.
Oh Jesus Christ. It's because open
can be an HTML attribute.
Describe the bug Typescript marks
snackbar.open()
with issue(does not break this function and snaskbar opening works fine regardless of this issue).
No such TS issue for
snackbar.close()
.To Reproduce Run any example with
.open()
from https://sveltematerialui.com/demo/snackbar/ in VSCode + SvelteKit plugin and TS enabled.Expected behavior No TS issue for
open()
method.