-
Notifications
You must be signed in to change notification settings - Fork 422
Open
Labels
Milestone
Description
This API is deprecated in favor of Ctor.CustomElementConstructor and it has roughly zero usage. We should just remove it.
| export function deprecatedBuildCustomElementConstructor( | |
| Ctor: ComponentConstructor | |
| ): HTMLElementConstructor { | |
| if (process.env.NODE_ENV !== 'production') { | |
| /* eslint-disable-next-line no-console */ | |
| console.warn( | |
| 'Deprecated function called: "buildCustomElementConstructor" function is deprecated and it will be removed.' + | |
| `Use "${Ctor.name}.CustomElementConstructor" static property of the component constructor to access the corresponding custom element constructor instead.` | |
| ); | |
| } | |
| return Ctor.CustomElementConstructor; | |
| } |