@rero/ng-core
Version:
RERO angular core library.
22 lines (21 loc) • 818 B
TypeScript
import { PipeTransform } from '@angular/core';
import { RecordService } from '../record/record.service';
import * as i0 from "@angular/core";
/**
* Get a record by its PID.
*/
export declare class GetRecordPipe implements PipeTransform {
protected recordService: RecordService;
/**
* Return record data corresponding to PID.
*
* @param pid Record PID.
* @param type Type of the resource.
* @param returnType Type of data to return.
* @param field Field to return.
* @return Record or field record corresponding to PID.
*/
transform(pid: any, type: string, returnType?: string, field?: string, headers?: object): any;
static ɵfac: i0.ɵɵFactoryDeclaration<GetRecordPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<GetRecordPipe, "getRecord", false>;
}