Added intercom-client (#25510)

* added feather-icons

* added strictfunctiontypes

* added intercom-client

* splitting pull requests by package
This commit is contained in:
Jinesh Shah
2018-05-03 08:28:04 -07:00
committed by Andy
parent e05a329534
commit 11c45b47fd
4 changed files with 33 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// Type definitions for intercom-client 2.9
// Project: https://github.com/intercom/intercom-node
// Definitions by: Jinesh Shah <https://github.com/jineshshah36>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface IdentityVerificationOptions {
secretKey: string;
identifier: string;
}
export const IdentityVerification: {
userHash(opts: IdentityVerificationOptions): string;
};
@@ -0,0 +1,3 @@
import * as intercom from "intercom-client";
intercom.IdentityVerification.userHash({ secretKey: "", identifier: "" }); // $ExpectType string
+16
View File
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": ["index.d.ts", "intercom-client-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }