This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
[mdc-auto-init] Missing declaration for function with second optional argument #5188
Closed
Description
Bug report
Calling autoInit() multiple times
https://material.io/develop/web/components/auto-init/
mdc-auto-init does not declare a function that takes the second optional argument used to call autoInit() multiple times without logging a warning.
Steps to reproduce
mdc.autoInit(/* root */ document, () => {});
Actual behavior
error TS2554: Expected 0-1 arguments, but got 2.
Your Environment:
Software | Version(s) |
---|---|
MDC Web | 3.2.0 |
Browser | Chrome 77.0.3865.120 |
Operating System | Windows 10 (1903) |