Skip to content

Commit

Permalink
fix: add type definition for Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleavely committed Aug 23, 2022
1 parent 2c08ad8 commit 90976fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface NextMonthlyOptions {
from?: Date | number | string
now?: Date | number | string
}

declare function nextMonthly(options?: NextMonthlyOptions): Date

export = nextMonthly
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Determines the next monthly occurence of a date, falling back on the last day of the month.",
"main": "./src/index.js",
"types": "./index.d.ts",
"scripts": {
"test": "jest --verbose --silent && eslint ."
},
Expand Down

0 comments on commit 90976fc

Please sign in to comment.