UNPKG

@primno/core

Version:

Front-end framework for Model-Driven Apps of Power Apps and Dynamics 365.

19 lines (18 loc) 713 B
import { Component } from "../../../typing"; import { ComponentLifeCycle } from "../../component/component-lifecycle"; import { Middleware } from "../container/container"; /** * Trigger the mnOnInit event on the components. * Must be the first middleware to ensure * that mnOnInit will be trigger in the right order (parent to children). */ export declare class OnInitMiddleWare implements Middleware { private componentLifeCycle; private componentsConstructed; private counter; get inherit(): boolean; constructor(componentLifeCycle: ComponentLifeCycle); onPreConstruct(identifier: any): void; onPostConstruct(instance: Component): unknown; onError(errorMsg: string): void; }