Skip to content

Commit

Permalink
added if-follow-package.d.ts for resolving type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan7reza7 committed Oct 15, 2024
1 parent 9031b3c commit 350b77e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
26 changes: 19 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ and follows the guidelines from [Keep a Changelog](https://keepachangelog.com/).
### [1.0.0] - 2024-02-01

#### Added

- Initial public release on github registry.

#### Changed

- Updated documentation in `README.md`.
- Improved and added comprehensive tests using Jest.

#### Fixed

- Resolved minor bugs and issues.

#### Security

- Enhanced security measures in API requests.

### [v1.0.1]
Expand Down Expand Up @@ -113,12 +117,13 @@ fixed some issues and configured files for v1.1.2
fixed some version 2.0.0 error and configured files for v2.1.0

#### Changed
now version 2.0.0 working correctly, resolves v2.0.0 errors

now version 2.0.0 working correctly, resolves v2.0.0 errors

### [v2.1.1]

#### Changed

now version 2.1.1 working correctly, resolves v2.1.0 unfollow feature errors

#### Fixed
Expand Down Expand Up @@ -148,7 +153,6 @@ fixed some version 2.1.0 error and configured files for v2.1.1
- Updated codes to serve cdn source from lib while npm for src
- fixed some other issues and configured files for v2.1.4


### [v2.2.0]

#### Added
Expand All @@ -164,7 +168,6 @@ fixed some version 2.1.0 error and configured files for v2.1.1
- Updated source codes for adding ifFollow
- Updated Readme and jsdoc doc for CDN approach


#### Fixed

- Fixed some issues related to the new changes.
Expand All @@ -173,26 +176,28 @@ fixed some version 2.1.0 error and configured files for v2.1.1
### [v2.2.1]

#### Fixed

- Updated reademe doc for documenting cdn and npm approach following best practices
- fixed some other issues and configured files for v2.2.1

#### Changed
- Updated links to abs url for cross compatibility

- Updated links to abs url for cross compatibility

### [v2.2.2]

#### Fixed

- Updated axios version to 0.28.0 for cross compatibility
- updated doc for documenting latest cdn and npm approach following best practices for v2.2.2
- fixed some other issues and configured files for v2.2.2

#### Changed

- Updated axios version to 0.28.0 for cross compatibility
- added security dependabot
- add codeql


### [v3.0.0] - [2024-02-24]

#### Added
Expand All @@ -201,6 +206,7 @@ fixed some version 2.1.0 error and configured files for v2.1.1
- Updated the README.md documentation for following the best practices.

#### Changed

- Updated the README.md documentation for following the best practices.
- Updated issue templates with correct descriptions and links

Expand All @@ -213,10 +219,16 @@ fixed some version 2.1.0 error and configured files for v2.1.1

- README.md updated: Added consistent formating and recommended for best practices.

### [v3.0.1]

#### Fixed

- added if-follow-package.d.ts to resolve the types issue and hinting codes suggetion in editor

### [Next Release] - Collecting issues and new features for next release

### Important changes links:

- [Unreleased](https://github.com/farhan7reza7/if-follow-package/compare/v3.0.0...HEAD)
- [v3.0.0](https://github.com/farhan7reza7/if-follow-package/releases/tag/v3.0.0)
- [Unreleased](https://github.com/farhan7reza7/if-follow-package/compare/v3.0.1...HEAD)
- [v3.0.1](https://github.com/farhan7reza7/if-follow-package/releases/tag/v3.0.1)
- [Release](https://github.com/farhan7reza7/if-follow-package/milestone/2)
22 changes: 22 additions & 0 deletions if-follow-package.d.ts
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;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "if-follow-package",
"version": "3.0.0",
"version": "3.0.1",
"description": "if-follow-package is a JavaScript library that provides APIs for managing followers and followings on GitHub. This package allows you to find users who are not following you back, find users who are following you back, unfollow users who are not following you back, check if a user is following you, check if you are following a user, get the exact total number of followings, get the exact total number of followers, and other follow control features.",
"main": "src/index.js",
"types": "if-follow-package.d.ts",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 350b77e

Please sign in to comment.