computed
See source code@computed
decorator with options.
function computed<Value, Diff = unknown>(
options?: ComputedOptions<Value, Diff>
): ((
target: any,
key: string,
descriptor: PropertyDescriptor
) => PropertyDescriptor) &
(<This>(
compute: () => Value,
context: ClassMethodDecoratorContext<This, () => Value>
) => () => Value)
Parameters
Name | Description |
---|---|
|
|
Returns
((
target: any,
key: string,
descriptor: PropertyDescriptor
) => PropertyDescriptor) &
(<This>(
compute: () => Value,
context: ClassMethodDecoratorContext<This, () => Value>
) => () => Value)
Prev
atomNext
getComputedInstance