register.d.ts 1.36 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*******************************************************************************
 * Copyright 2003-2018 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 * contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 *
 * This file is part of CubicWeb.
 *
 * CubicWeb is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * CubicWeb is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License along
 * with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/

Laurent Wouters's avatar
Laurent Wouters committed
21
22
23
24
/**
 * Externalise some regitration to JS because the typescript version is faulty
 */

25
declare module "register" {
Laurent Wouters's avatar
Laurent Wouters committed
26
27
28
29
30
  /**
   * Registers some navigation events
   * @param onBeforeNavigate Event after tab navigation occurred
   * @param onCompleted Event before a tab navigation occur
   */
31
32
33
34
35
  export function registerNavigations(
    onBeforeNavigate: any,
    onCompleted: any
  ): void;
}