Skip to content

Commit

Permalink
Include declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Mar 6, 2024
1 parent c940c72 commit f7760e9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-scissors-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tammergard/roman": patch
---

Turn into ESM package.
5 changes: 5 additions & 0 deletions .changeset/lemon-turtles-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tammergard/roman": patch
---

Include declaration file.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare function toRoman(arabic: number): string

declare function fromRoman(roman: string): number
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tammergard/roman",
"version": "1.0.0",
"type": "module",
"description": "Convert to and from roman numerals",
"scripts": {
"format": "prettier --write .",
Expand All @@ -17,7 +18,8 @@
},
"main": "index.js",
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit f7760e9

Please sign in to comment.