UNPKG

@spartacus/checkout

Version:

Checkout feature library for Spartacus

15 lines (14 loc) 737 B
import { CanActivate, Router, UrlTree } from '@angular/router'; import { ActiveCartService, SemanticPathService } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class CartNotEmptyGuard implements CanActivate { protected activeCartService: ActiveCartService; protected semanticPathService: SemanticPathService; protected router: Router; constructor(activeCartService: ActiveCartService, semanticPathService: SemanticPathService, router: Router); canActivate(): Observable<boolean | UrlTree>; private isEmpty; static ɵfac: i0.ɵɵFactoryDeclaration<CartNotEmptyGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CartNotEmptyGuard>; }