Skip to content
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
@austinw-fineart

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)

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.bugdocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions