Skip to content

Interface: IObservableFactory()

Defined in: mobx:

See

https://mobx.js.org/README.html

Extends

  • Annotation.PropertyDecorator.ClassAccessorDecorator.ClassFieldDecorator

Call Signature

ts
IObservableFactory<T>(value: T[], options?: CreateObservableOptions): IObservableArray<T>;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
valueT[]
options?CreateObservableOptions

Returns

IObservableArray<T>

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory<T>(value: Set<T>, options?: CreateObservableOptions): ObservableSet<T>;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
valueSet<T>
options?CreateObservableOptions

Returns

ObservableSet<T>

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory<K, V>(value: Map<K, V>, options?: CreateObservableOptions): ObservableMap<K, V>;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Kany
Vany

Parameters

ParameterType
valueMap<K, V>
options?CreateObservableOptions

Returns

ObservableMap<K, V>

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory<T>(
   value: T, 
   decorators?: AnnotationsMap<T, never>, 
   options?: CreateObservableOptions): T;

Defined in: mobx:

Type Parameters

Type Parameter
T extends object

Parameters

ParameterType
valueT
decorators?AnnotationsMap<T, never>
options?CreateObservableOptions

Returns

T

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory(target: Object, propertyKey: string | symbol): void;

Defined in: mobx:

Parameters

ParameterType
targetObject
propertyKeystring | symbol

Returns

void

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory(value: ClassAccessorDecoratorTarget<any, any>, context: ClassAccessorDecoratorContext): void | ClassAccessorDecoratorResult<any, any>;

Defined in: mobx:

Parameters

ParameterType
valueClassAccessorDecoratorTarget<any, any>
contextClassAccessorDecoratorContext

Returns

void | ClassAccessorDecoratorResult<any, any>

See

https://mobx.js.org/README.html

Call Signature

ts
IObservableFactory(value: any, context: ClassFieldDecoratorContext<any, any>): any;

Defined in: mobx:

Parameters

ParameterType
valueany
contextClassFieldDecoratorContext<any, any>

Returns

any

See

https://mobx.js.org/README.html

Methods

decorate_20223_()

ts
decorate_20223_(value: any, context: DecoratorContext): any;

Defined in: mobx:

Parameters

ParameterType
valueany
contextDecoratorContext

Returns

any

Inherited from

ts
Annotation.decorate_20223_

extend_()

ts
extend_(
   adm: ObservableObjectAdministration, 
   key: PropertyKey, 
   descriptor: PropertyDescriptor, 
   proxyTrap: boolean): boolean | null;

Defined in: mobx:

Parameters

ParameterType
admObservableObjectAdministration
keyPropertyKey
descriptorPropertyDescriptor
proxyTrapboolean

Returns

boolean | null

Inherited from

ts
Annotation.extend_

make_()

ts
make_(
   adm: ObservableObjectAdministration, 
   key: PropertyKey, 
   descriptor: PropertyDescriptor, 
   source: object): MakeResult;

Defined in: mobx:

Parameters

ParameterType
admObservableObjectAdministration
keyPropertyKey
descriptorPropertyDescriptor
sourceobject

Returns

MakeResult

Inherited from

ts
Annotation.make_

Properties

annotationType_

ts
annotationType_: string;

Defined in: mobx:

Inherited from

ts
Annotation.annotationType_

array

ts
array: <T>(initialValues?: T[], options?: CreateObservableOptions) => IObservableArray<T>;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
initialValues?T[]
options?CreateObservableOptions

Returns

IObservableArray<T>


box

ts
box: IObservableValueFactory;

Defined in: mobx:


deep

ts
deep: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator;

Defined in: mobx:


map

ts
map: IObservableMapFactory;

Defined in: mobx:


object

ts
object: <T>(props: T, decorators?: AnnotationsMap<T, never>, options?: CreateObservableOptions) => T;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
propsT
decorators?AnnotationsMap<T, never>
options?CreateObservableOptions

Returns

T


options_?

ts
optional options_?: any;

Defined in: mobx:

Inherited from

ts
Annotation.options_

ref

ts
ref: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator;

Defined in: mobx:

Decorator that creates an observable that only observes the references, but doesn't try to turn the assigned value into an observable.ts.


set

ts
set: <T>(initialValues?: IObservableSetInitialValues<T>, options?: CreateObservableOptions) => ObservableSet<T>;

Defined in: mobx:

Type Parameters

Type ParameterDefault type
Tany

Parameters

ParameterType
initialValues?IObservableSetInitialValues<T>
options?CreateObservableOptions

Returns

ObservableSet<T>


shallow

ts
shallow: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator;

Defined in: mobx:

Decorator that creates an observable converts its value (objects, maps or arrays) into a shallow observable structure


struct

ts
struct: Annotation & PropertyDecorator & ClassAccessorDecorator & ClassFieldDecorator;

Defined in: mobx: