@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>
28 lines (25 loc) • 875 B
TypeScript
import { NgDocStoreService } from '@ng-doc/app/services/store';
import { Subject, Observable } from 'rxjs';
import * as i0 from '@angular/core';
/**
* Service for managing themes.
*/
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>;
}
export { NgDocThemeService };