mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Correct types for user.archive, requestPermanentDeletion, and requestPermanentDeletionByParams
This commit is contained in:
Vendored
+7
-2
@@ -59,9 +59,14 @@ export class Users {
|
||||
|
||||
scroll: Scroll<User>;
|
||||
|
||||
archive(): Promise<User>;
|
||||
archive(identifier: UserIdentifier): Promise<ApiResponse<User>>;
|
||||
archive(identifier: UserIdentifier, cb: callback<ApiResponse<User>>): 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 {
|
||||
|
||||
Reference in New Issue
Block a user