DefinitelyTyped/types/microsoft-graph/microsoft-graph-tests.ts
Muthurathinam 8be2237ba3 Creating types for Microsoft Graph Models (#35804)
* 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
2019-06-12 10:58:09 -07:00

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
};