From 654f3a7d69927ecbfd0385f889cda2cd796218f8 Mon Sep 17 00:00:00 2001 From: Ehtesham Hasnain Date: Sun, 27 Sep 2020 15:17:54 +0200 Subject: [PATCH] Fix export of routeBlocker instance --- src/index.ts | 2 +- src/route-blocker.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 90f51e3..b144c84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export * from "./route-blocker" +export { routeBlocker } from "./route-blocker" export interface RoutesBlockingMap { [route: string]: boolean; diff --git a/src/route-blocker.ts b/src/route-blocker.ts index e508b77..3c3644e 100644 --- a/src/route-blocker.ts +++ b/src/route-blocker.ts @@ -50,6 +50,4 @@ class RouteBlocker { } } -const routeBlocker = new RouteBlocker(); - -export default routeBlocker; +export const routeBlocker = new RouteBlocker();