UNPKG

@angular-redux-ivy/form

Version:

Build Angular 2+ forms with Redux

22 lines (21 loc) 806 B
import { NgForm } from '@angular/forms'; import { NgRedux } from '@angular-redux-ivy/store'; import { Action, Unsubscribe } from 'redux'; import * as i0 from "@angular/core"; export interface AbstractStore<RootState> { dispatch(action: Action & { payload: any; }): void; getState(): RootState; subscribe(fn: (state: RootState) => void): Unsubscribe; } export declare const FORM_CHANGED = "@@angular-redux/form/FORM_CHANGED"; export declare class FormStore { private store; constructor(store: NgRedux<any>); getState(): any; subscribe(fn: (state: any) => void): Unsubscribe; valueChanged<T>(path: string[], form: NgForm, value: T): void; static ɵfac: i0.ɵɵFactoryDeclaration<FormStore, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FormStore>; }