adaptive-expressions
Version:
Common Expression Language
30 lines (26 loc) • 729 B
text/typescript
/**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Options used to define evaluation behaviors.
*/
export class Options {
nullSubstitution: (path: string) => unknown;
/**
* The locale info for evaluating Expressions.
*/
locale: string;
/**
* Initializes a new instance of the [Options](xref:adaptive-expressions.Options) class.
*
* @param opt Optional. An [Options](xref:adaptive-expressions.Options) instance.
*/
constructor(opt?: Options) {
this.nullSubstitution = opt ? opt.nullSubstitution : undefined;
this.locale = opt ? opt.locale : undefined;
}
}