UNPKG

botbuilder-dialogs-adaptive-runtime-core

Version:

Bot Framework Adaptive Dialogs runtime core components

36 lines (32 loc) 763 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * Configuration is an interface that is used to obtain configurable values */ export interface Configuration { /** * Look up a value by path. * * @param path path to get * @returns the value, or undefined */ get<T = unknown>(path?: string[]): T | undefined; /** * Set a value by path. * * @param path path to get * @param value path to get */ set(path: string[], value: unknown): void; } /** * Useful for shimming BotComponents into ComponentRegistrations */ export const noOpConfiguration: Configuration = { get(_path) { return undefined; }, set(_path, _value) { // no-op }, };