From b25e9ab4b215d439d2a1480c2c2f20fd17ea63c9 Mon Sep 17 00:00:00 2001 From: Josef Hornych Date: Mon, 18 Jun 2018 15:44:34 +0200 Subject: [PATCH] Fix linter errors --- types/intercom-client/User.d.ts | 6 ++--- types/intercom-client/index.d.ts | 39 -------------------------------- 2 files changed, 3 insertions(+), 42 deletions(-) diff --git a/types/intercom-client/User.d.ts b/types/intercom-client/User.d.ts index d67fd963d2..880b8b5681 100644 --- a/types/intercom-client/User.d.ts +++ b/types/intercom-client/User.d.ts @@ -9,9 +9,9 @@ export interface Avatar { export interface SocialProfile { "name": "Twitter", - readonly "id": string, - "username": "th1sland", - "url": "http://twitter.com/th1sland" + readonly "id": string | null, + "username": string | null, + "url": string | null } export interface Segment { diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index 427089bc66..4d9e572da0 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -3,13 +3,9 @@ // Definitions by: Jinesh Shah , Josef Hornych // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 - import { List as UserList, User, UserIdentifier } from './User'; import { Scroll } from './Scroll'; -import {List as UserList, User, UserIdentifier} from './User'; -import {Scroll} from './Scroll'; - export interface IdentityVerificationOptions { secretKey: string; identifier: string; @@ -19,40 +15,6 @@ export const IdentityVerification: { userHash(opts: IdentityVerificationOptions): string; }; -<<<<<<< HEAD - -export declare class Client { - constructor(auth: { token: string }); - constructor(username: string, password: string); - constructor(auth: { appId: string, appApiKey: string }); - - users: Users; -} - - -interface Company { - readonly "id": string -} - - -declare class Users { - create(user: Partial): Promise - - update(user: UserIdentifier & Partial ): Promise - - find(identifier: UserIdentifier): Promise - - list(): Promise - - listBy(params: {tag_id: string, segment_id: string}): Promise - - scroll: Scroll - - archive(): Promise - - requestPermanentDeletion(): Promise<{id: number}> -} -======= export class Client { constructor(auth: { token: string } | { appId: string, appApiKey: string }); constructor(username: string, password: string); @@ -81,4 +43,3 @@ export class Users { requestPermanentDeletion(): Promise<{id: number}>; } ->>>>>>> tmp