@nanostores/angular
Version:
Angular integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores
16 lines (15 loc) • 563 B
TypeScript
import { OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
import { Store } from 'nanostores';
import * as i0 from "@angular/core";
export declare class NanostoresService implements OnDestroy {
private destroyed$;
/**
* @param store Store instance.
* @returns Observable that contains current Store value.
*/
useStore<T>(store: Store<T>): Observable<T>;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NanostoresService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NanostoresService>;
}