@knora/action
Version:
Knora ui module: action
11 lines (10 loc) • 672 B
TypeScript
import { PipeTransform } from '@angular/core';
import { StringLiteral } from '@knora/api';
/**
* This pipe stringifies an array of StringLiterals. With the parameter 'all', the pipe concats all values and appends the corresponding language in brackets.
*
* Otherwise the pipe displays the value corresponding to the default language which comes from the user profile (if a user is logged-in) or from the browser. With the predefined language the pipe checks, if a value exists in the array, otherwise it shows the first value.
*/
export declare class StringifyStringLiteralPipe implements PipeTransform {
transform(value: StringLiteral[], args: string): string;
}