Skip to content

Commit

Permalink
fix: JSR warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vbudovski committed Dec 22, 2024
1 parent 781fbdc commit 81652ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion paseri-lib/deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@vbudovski/paseri",
"license": "MIT",
"version": "0.1.0",
"exports": "./src/index.ts",
"imports": {
Expand All @@ -9,7 +10,7 @@
"esbuild": "npm:esbuild",
"expect-type": "npm:expect-type",
"fast-check": "npm:fast-check",
"type-fest": "npm:type-fest",
"type-fest": "npm:type-fest@4.30.0",
"typescript": "npm:typescript",
"zod": "npm:zod"
},
Expand All @@ -22,5 +23,8 @@
"rules": {
"exclude": ["no-explicit-any", "no-unused-vars"]
}
},
"publish": {
"include": ["src"]
}
}
4 changes: 2 additions & 2 deletions paseri-lib/src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ParseErrorResult {
get issue(): TreeNode {
return this._issue;
}
messages(locale: Translations = en) {
messages(locale: Translations = en): readonly Message[] {
if (this._messageList === undefined) {
this._messageList = messageList(this._issue, locale);
}
Expand All @@ -36,7 +36,7 @@ class PaseriError extends Error {

this._issue = issue;
}
messages(locale: Translations = en) {
messages(locale: Translations = en): readonly Message[] {
if (this._messageList === undefined) {
this._messageList = messageList(this._issue, locale);
}
Expand Down

0 comments on commit 81652ef

Please sign in to comment.