From d41d8be7e0642bab9a770f5c8609b9bdaa107a71 Mon Sep 17 00:00:00 2001 From: Max Bernardy Date: Tue, 4 Dec 2018 13:57:49 -0500 Subject: [PATCH] Correct types for user.archive, requestPermanentDeletion, and requestPermanentDeletionByParams --- types/intercom-client/index.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/types/intercom-client/index.d.ts b/types/intercom-client/index.d.ts index b776165c55..f897622894 100644 --- a/types/intercom-client/index.d.ts +++ b/types/intercom-client/index.d.ts @@ -59,9 +59,14 @@ export class Users { scroll: Scroll; - archive(): Promise; + archive(identifier: UserIdentifier): Promise>; + archive(identifier: UserIdentifier, cb: callback>): void; - requestPermanentDeletion(): Promise<{id: number}>; + requestPermanentDeletion(id: string): Promise<{ id: number }>; + requestPermanentDeletion(id: string, cb: callback<{ id: number }>): void; + + requestPermanentDeletionByParams(identifier: UserIdentifier): Promise<{ id: number }>; + requestPermanentDeletionByParams(identifier: UserIdentifier, cb: callback<{ id: number }>): void; } export class Companies {