@microsoft/agents-hosting-extensions-teams
Version:
Microsoft 365 Agents SDK for JavaScript. Teams extensions
18 lines (15 loc) • 486 B
text/typescript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { TeamsChannelData, teamsChannelDataZodSchema } from './teamsChannelData'
/**
* Parses the given object as TeamsChannelData.
*
* @param {object} o - The object to parse.
* @returns {TeamsChannelData} - The parsed TeamsChannelData.
*/
export function parseTeamsChannelData (o: object): TeamsChannelData {
teamsChannelDataZodSchema.passthrough().parse(o)
return o
}