@ngrx/signals
Advanced tools
Comparing version 17.0.1 to 17.1.0
{ | ||
"name": "@ngrx/signals", | ||
"version": "17.0.1", | ||
"description": "Reactive State Management with Angular Signals", | ||
"version": "17.1.0", | ||
"description": "Reactive Store and Set of Utilities for Angular Signals", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^17.0.1'; | ||
exports.platformVersion = '^17.1.0'; | ||
//# sourceMappingURL=libs-version.js.map |
import { Type } from '@angular/core'; | ||
import { StateSignal } from './state-signal'; | ||
import { EmptyFeatureResult, InnerSignalStore, MergeFeatureResults, SignalStoreProps, SignalStoreConfig, SignalStoreFeature, SignalStoreFeatureResult } from './signal-store-models'; | ||
import { EmptyFeatureResult, InnerSignalStore, MergeFeatureResults, SignalStoreConfig, SignalStoreFeature, SignalStoreFeatureResult, SignalStoreProps } from './signal-store-models'; | ||
import { Prettify } from './ts-helpers'; | ||
@@ -5,0 +5,0 @@ export declare function signalStore<F1 extends SignalStoreFeatureResult>(f1: SignalStoreFeature<EmptyFeatureResult, F1>): Type<SignalStoreProps<F1> & StateSignal<Prettify<F1['state']>>>; |
import { StateSignal } from './state-signal'; | ||
import { EmptyFeatureResult, SignalStoreFeature, SignalStoreFeatureResult, SignalStoreSlices } from './signal-store-models'; | ||
import { Prettify } from './ts-helpers'; | ||
type HooksFactory<Input extends SignalStoreFeatureResult> = (store: Prettify<SignalStoreSlices<Input['state']> & Input['signals'] & Input['methods'] & StateSignal<Prettify<Input['state']>>>) => void; | ||
type HookFn<Input extends SignalStoreFeatureResult> = (store: Prettify<SignalStoreSlices<Input['state']> & Input['signals'] & Input['methods'] & StateSignal<Prettify<Input['state']>>>) => void; | ||
type HooksFactory<Input extends SignalStoreFeatureResult> = (store: Prettify<SignalStoreSlices<Input['state']> & Input['signals'] & Input['methods'] & StateSignal<Prettify<Input['state']>>>) => { | ||
onInit?: () => void; | ||
onDestroy?: () => void; | ||
}; | ||
export declare function withHooks<Input extends SignalStoreFeatureResult>(hooks: { | ||
onInit?: HooksFactory<Input>; | ||
onDestroy?: HooksFactory<Input>; | ||
onInit?: HookFn<Input>; | ||
onDestroy?: HookFn<Input>; | ||
}): SignalStoreFeature<Input, EmptyFeatureResult>; | ||
export declare function withHooks<Input extends SignalStoreFeatureResult>(hooks: HooksFactory<Input>): SignalStoreFeature<Input, EmptyFeatureResult>; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
480141
3494