UNPKG

botbuilder-dialogs-adaptive-runtime-core

Version:

Bot Framework Adaptive Dialogs runtime core components

7 lines (5 loc) 292 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // Necessary to help coerce `keyof T` keys to strings. Only used internally to this class. export const stringify = <K extends string | number | symbol>(k: K): string => typeof k === 'string' ? k : k.toString();