-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added if-follow-package.d.ts for resolving type issue
- Loading branch information
1 parent
9031b3c
commit 350b77e
Showing
3 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
interface IfFollow { | ||
isFollower(username: string): Promise<boolean>; | ||
isFollowing(username: string): Promise<boolean>; | ||
totalFollowers(): Promise<number>; | ||
totalFollowings(): Promise<number>; | ||
whoNotFollowingBack(): Promise<string[]>; | ||
whoFollowingBack(): Promise<string[]>; | ||
isFollowingBack(username: string): Promise<boolean>; | ||
unfollowNotFollowingBack(username: string): Promise<void>; | ||
unfollowAllNotFollowingBack(): Promise<void>; | ||
} | ||
|
||
/** | ||
* Creates an instance of the IfFollow type. | ||
* | ||
* @param yourUsername - Your GitHub username. | ||
* @param yourToken - Your GitHub personal access token. | ||
* @returns {IfFollow} An object to manage followers and followings. | ||
*/ | ||
declare function ifFollow(yourUsername: string, yourToken: string): IfFollow; | ||
|
||
export = ifFollow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters