API Reference

DatePropertyObserverManagerclass

Class exported from property-observer/factories/date-property.

Overview

Specialized property observers for Date property paths (year/month/day/utc variants and time).

Import

import { DatePropertyObserverManager } from '@rs-x/state-manager';

Example

import { DatePropertyObserverManager } from '@rs-x/state-manager';

const instance = new DatePropertyObserverManager(...args);

Members

5 members in this class.

constructor
constructorpublic
constructor(
  @Inject(RsXStateManagerInjectionTokens.IDateProxyFactory) private readonly _dateProxyFactory: IDateProxyFactory,
  @Inject(RsXCoreInjectionTokens.IErrorLog) private readonly _errorLog: IErrorLog,
  @Inject(RsXCoreInjectionTokens.IDatePropertyAccessor) private readonly _datePropertyAccessor: IDatePropertyAccessor
)

Parameters

Name
Type
Required
_dateProxyFactory
IDateProxyFactory
required
_errorLog
IErrorLog
required
_datePropertyAccessor
IDatePropertyAccessor
required
createId
methodpublic
public override createId(date: Date): Date

Parameters

Name
Type
Required
date
Date
required

Returns

Date

getId
methodpublic
public override getId(date: Date): Date

Parameters

Name
Type
Required
date
Date
required

Returns

Date

createInstance
methodprotected
protected override createInstance(date: Date): IProperForDataObserverManager

Parameters

Name
Type
Required
date
Date
required
releaseInstance
methodprotected
protected override releaseInstance( properForDataObserverManager: IProperForDataObserverManager): void

Parameters

Name
Type
Required
properForDataObserverManager
IProperForDataObserverManager
required

Returns

void