Type Alias UpdateCallback<Value, Params>

UpdateCallback: (
    params: Params,
    previousResolvedValue: Value | undefined,
) => AllowNoUpdate<MaybePromise<ExcludeNoUpdate<Value>>>

Type for update callback provided to CallbackObservable, used to update its value.

Type Parameters

  • Value
  • Params

Type declaration