Variable PluginsConst

Plugins: {
    apply(
        hook:
            | "update"
            | "init"
            | "destroy"
            | "setup"
            | "dom"
            | "node"
            | "attribute",
        args?: any[],
    ): void;
    reset(): void;
    use(
        plugin: Partial<
            Record<
                | "update"
                | "init"
                | "destroy"
                | "setup"
                | "dom"
                | "node"
                | "attribute",
                any,
            >,
        >,
    ): void;
} = ...

Type declaration

  • apply:function
    • Parameters

      • hook: "update" | "init" | "destroy" | "setup" | "dom" | "node" | "attribute"
      • args: any[] = []

      Returns void

  • reset:function
  • use:function
    • Parameters

      • plugin: Partial<
            Record<
                "update"
                | "init"
                | "destroy"
                | "setup"
                | "dom"
                | "node"
                | "attribute",
                any,
            >,
        >

      Returns void