mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
@ -24,7 +24,9 @@ import { IonToast } from '@ionic/core/components/ion-toast.js'
|
||||
* register the underlying Web Component and
|
||||
* (optionally) provide a framework delegate.
|
||||
*/
|
||||
const createController = (tagName: string, customElement: any, oldController: any, useDelegate = false) => {
|
||||
const createController: {
|
||||
<T>(tagName: string, customElement: any, oldController: T, useDelegate?: boolean): T
|
||||
} = (tagName: string, customElement: any, oldController: any, useDelegate = false) => {
|
||||
const delegate = useDelegate ? VueDelegate() : undefined;
|
||||
const oldCreate = oldController.create.bind(oldController);
|
||||
oldController.create = (options: any) => {
|
||||
|
Reference in New Issue
Block a user