• Returns an RxJS operator to edit and update a Resource. It is equivalent to

    switchMap(resource => of(undefined))
    

    if resource is null or undefined and applying edit operation to the resource and doing

    switchMap(resource => resource.update())
    

    otherwise.

    Type Parameters

    Parameters

    • edit: ((resource) => T)

      the operation to edit the resource

        • (resource): T
        • Parameters

          • resource: Readonly<T>

          Returns T

    Returns OperatorFunction<T | undefined, Accessor | undefined>

    a function that transforms the source Observable

Generated using TypeDoc