express-msteams-host
Version:
Express utility for Microsoft Teams solutions
22 lines • 837 B
JavaScript
// Copyright (c) Wictor Wilén. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageExtensionDeclaration = void 0;
/**
* Decorator function for Messaging Extensions
* @param name Name of the messaging extension matching the commandId to filter commands on, or skip for catch-all scenarios
*/
function MessageExtensionDeclaration(name) {
return function (target, propertyKey) {
if (target.__messageExtensions === undefined) {
target.__messageExtensions = [];
}
target.__messageExtensions.push({
propertyKey: propertyKey,
name: name
});
};
}
exports.MessageExtensionDeclaration = MessageExtensionDeclaration;
//# sourceMappingURL=MessageExtensionDeclaration.js.map
;