UNPKG

@ng-doc/app

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

25 lines (24 loc) 850 B
import { NgDocStoreService } from '@ng-doc/app/services/store'; import { Observable, Subject } from 'rxjs'; import * as i0 from "@angular/core"; /** * Service for managing themes. */ export declare class NgDocThemeService { protected readonly document: Document; protected readonly store: NgDocStoreService; protected readonly change$: Subject<string | null>; protected readonly documentElement: HTMLElement; /** * Returns the current theme. */ get currentTheme(): string | null; themeChanges(): Observable<string | null>; /** * Sets the theme by id. * @param id - Theme id. If not provided, the theme will be removed. */ set(id?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgDocThemeService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgDocThemeService>; }