mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for Microsoft graph models * Set noImplicitAny to true * Adding tests for types * Added more test for types * Removed unnecessary import * Remove unnecessary headers from types file * Fixing linting error in test file * Removed overwritten linting rules and fixed linted errors
32 lines
711 B
TypeScript
32 lines
711 B
TypeScript
// Microsoft Graph tests
|
|
// Project: https://github.com/microsoftgraph/msgraph-typescript-typings
|
|
|
|
import { User, Event, DateTimeTimeZone, ItemBody } from "microsoft-graph";
|
|
|
|
const user: User = {
|
|
officeLocation: "Bengaluru",
|
|
companyName: "Microsoft",
|
|
country: "India",
|
|
displayName: "Muthu"
|
|
};
|
|
|
|
const startTime: DateTimeTimeZone = {
|
|
dateTime: "2019-05-29T04:00:00.0000000"
|
|
};
|
|
|
|
const endTime: DateTimeTimeZone = {
|
|
dateTime: "2019-05-29T05:00:00.0000000",
|
|
};
|
|
|
|
const bodyText: ItemBody = {
|
|
contentType: "text",
|
|
content: "Hi, Shall we meet for a cup of coffee"
|
|
};
|
|
|
|
const event: Event = {
|
|
subject: "Meet for a coffee",
|
|
body: bodyText,
|
|
start: startTime,
|
|
end: endTime
|
|
};
|