Skip to content

Commit

Permalink
Merge pull request #42 from halitsever/development
Browse files Browse the repository at this point in the history
feat: 🎸 add types
  • Loading branch information
halitsever committed Mar 3, 2024
2 parents a2c5f14 + 8f8868d commit e14c97a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"version": "3.2.5",
"version": "3.2.6",
"devDependencies": {
"jest": "^29.5.0",
"vitepress": "^1.0.0-rc.44"
Expand Down
6 changes: 6 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import IReddit from "./lib/reddit";

export interface IMethods {
random: () => void;
reddit: (params: IReddit) => void;
}
7 changes: 7 additions & 0 deletions src/lib/reddit.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
interface IReddit {
locale: string;
customSubredditName: string;
fullRawBody: string
}

export default IReddit;

0 comments on commit e14c97a

Please sign in to comment.