adaptive-expressions
Version:
Common Expression Language
26 lines • 880 B
TypeScript
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ArrayExpression } from '../expressionProperties';
import { Expression } from '../expression';
declare type Input<T> = T[] | string | Expression;
/**
* `array` to json [ArrayExpression](xref:adaptive-expressions.ArrayExpression) converter.
*
* @template T The type of the items of the array.
*/
export declare class ArrayExpressionConverter<T> {
/**
* Converts an array into an [ArrayExpression](xref:adaptive-expressions.ArrayExpression).
*
* @param value `array` to convert.
* @returns The [ArrayExpression](xref:adaptive-expressions.ArrayExpression).
*/
convert(value: Input<T> | ArrayExpression<T>): ArrayExpression<T>;
}
export {};
//# sourceMappingURL=arrayExpressionConverter.d.ts.map