mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 10:56:19 +08:00
37 lines
803 B
TypeScript
37 lines
803 B
TypeScript
// Microsoft Teams tests
|
|
// Project: https://github.com/OfficeDev/microsoft-teams-library-js
|
|
|
|
/**
|
|
* Sample code for TypeChecking
|
|
* [Not an example]
|
|
*/
|
|
(() => {
|
|
microsoftTeams.getContext(context => {
|
|
const { upn, channelId } = context;
|
|
});
|
|
|
|
microsoftTeams.settings.getSettings(settings => {
|
|
const { contentUrl, entityId } = settings;
|
|
});
|
|
|
|
microsoftTeams.initialize();
|
|
|
|
microsoftTeams.navigateCrossDomain('https://bing.com');
|
|
|
|
microsoftTeams.registerOnThemeChangeHandler(theme => {
|
|
microsoftTeams.shareDeepLink({
|
|
subEntityId: '',
|
|
subEntityLabel: theme,
|
|
subEntityWebUrl: ''
|
|
});
|
|
});
|
|
|
|
microsoftTeams.authentication.authenticate({
|
|
failureCallback: () => { },
|
|
height: 200,
|
|
width: 200,
|
|
url: '',
|
|
successCallback: done => { }
|
|
});
|
|
})();
|