@jack-henry/web-component-router
Advanced tools
Comparing version 3.8.0 to 3.9.0
@@ -11,5 +11,5 @@ export default RouteData; | ||
* @param {boolean=} requiresAuthentication | ||
* @param {function():Promise<undefined>=} beforeEnter | ||
* @param {function():(Promise<unknown>|undefined)=} beforeEnter | ||
*/ | ||
constructor(id: string, tagName: string, path: string, namedParameters?: Array<string> | undefined, requiresAuthentication?: boolean | undefined, beforeEnter?: (() => Promise<undefined>) | undefined); | ||
constructor(id: string, tagName: string, path: string, namedParameters?: Array<string> | undefined, requiresAuthentication?: boolean | undefined, beforeEnter?: (() => (Promise<unknown> | undefined)) | undefined); | ||
id: string; | ||
@@ -24,3 +24,3 @@ tagName: string; | ||
requiresAuthentication: boolean; | ||
beforeEnter: () => Promise<void>; | ||
beforeEnter: () => (Promise<unknown> | undefined); | ||
} |
@@ -11,3 +11,3 @@ /** @fileoverview Basic data for a route */ | ||
* @param {boolean=} requiresAuthentication | ||
* @param {function():Promise<undefined>=} beforeEnter | ||
* @param {function():(Promise<unknown>|undefined)=} beforeEnter | ||
*/ | ||
@@ -14,0 +14,0 @@ constructor(id, tagName, path, namedParameters, requiresAuthentication, beforeEnter) { |
{ | ||
"name": "@jack-henry/web-component-router", | ||
"version": "3.8.0", | ||
"version": "3.9.0", | ||
"description": "Web Components Router", | ||
@@ -5,0 +5,0 @@ "main": "router.js", |
@@ -48,3 +48,3 @@ # @jack-henry/web-component-router | ||
* @param {boolean=} requiresAuthentication (optional - defaults true) | ||
* @param {function():Promise<undefined>=} beforeEnter Optionally allows you to dynamically import the component for a given route. The route-mixin.js will call your beforeEnter on routeEnter if the component does not exist in the dom. | ||
* @param {function():(Promise<unknown>|undefined)=} beforeEnter Optionally allows you to dynamically import the component for a given route. The route-mixin.js will call your beforeEnter on routeEnter if the component does not exist in the dom. | ||
*/ | ||
@@ -51,0 +51,0 @@ const routeData = new RouteData( |
@@ -9,3 +9,3 @@ export default Router; | ||
subRoutes: (Array<RouteConfig> | undefined); | ||
beforeEnter: (() => Promise<undefined> | undefined); | ||
beforeEnter?: (() => Promise<unknown> | undefined); | ||
}; | ||
@@ -12,0 +12,0 @@ declare class Router { |
@@ -26,3 +26,3 @@ /** | ||
* subRoutes: (Array<RouteConfig>|undefined), | ||
* beforeEnter: (function():Promise<undefined>|undefined) | ||
* beforeEnter?: (function():Promise<unknown>|undefined) | ||
* }} RouteConfig | ||
@@ -29,0 +29,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131802