Skip to content

Commit f2388d3

Browse files
committed
Updated typescript sample to not use typings
1 parent 9513d2b commit f2388d3

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

samples/typescript/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "typescript-sample",
3+
"version": "0.2.2",
4+
"description": "TypeScript Sample",
5+
"devDependencies": {
6+
"msgraph-types": "https://github.com/microsoftgraph/msgraph-typescript-typings.git",
7+
"typescript": "^2.1"
8+
}
9+
}

samples/typescript/sample.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../../typings/index.d.ts" />
2-
31
// For more samples in JavaScript, see https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/samples/node/node-sample.js
42

53
const secrets = require("../node/secrets");
@@ -8,11 +6,10 @@ const secrets = require("../node/secrets");
86

97
import {Client as GraphClient} from "../../lib/src/index";
108

11-
12-
// These are the typings for graph nodes that are published separetlely (User field types, etc.)
13-
// To reference Microsoft Graph typings, see directions at https://github.com/microsoftgraph/msgraph-typescript-typings/
14-
// The dependency has been added in typings.json, so just run typings install
15-
import * as MicrosoftGraph from "microsoft-graph"
9+
// These are the types for graph nodes that are published separetlely (User field types, messages, contacts, etc.)
10+
// To reference Microsoft Graph types, see directions at https://github.com/microsoftgraph/msgraph-typescript-typings/
11+
// The dependency has been added in package.json, so just run npm install
12+
import * as MicrosoftGraph from "microsoft-graph-typings"
1613

1714

1815
const client = GraphClient.init({

samples/typescript/typings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)