UNPKG

@netgrif/components-core

Version:

Netgrif Application engine frontend core Angular library

11 lines (10 loc) 494 B
import { MessageResource } from '../resources/interface/message-resource'; import { Observable } from 'rxjs'; /** * Transforms a {@link MessageResource} object into a stream containing either the message * or an error if the message resource contains an error. * * Can be used with rxjs' `switchMap` process responses from backend. * @param message a {@link MessageResource} object */ export declare function processMessageResponse(message: MessageResource): Observable<MessageResource>;