Skip to content

Commit fbf2e85

Browse files
committed
chore: pin @types/node to exact version 25.3.3 and fix tsconfig
1 parent 43df087 commit fbf2e85

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"@decentralchain/transactions": "5.0.0",
134134
"@evilmartians/lefthook": "2.1.3",
135135
"@size-limit/preset-small-lib": "12.0.0",
136-
"@types/node": "^25.3.3",
136+
"@types/node": "25.3.3",
137137
"@vitest/coverage-v8": "4.0.18",
138138
"publint": "0.3.18",
139139
"size-limit": "12.0.0",

src/tools/stringify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const FIELDS: string[] = [
1212
export default function <T extends object>(data: T): string {
1313
return JSON.stringify(
1414
data,
15-
function (this: Record<string, unknown>, key: string, value: unknown) {
15+
function (this: { type?: string; [key: string]: unknown }, key: string, value: unknown) {
1616
if (FIELDS.includes(key)) {
1717
return `!${String(value)}!`;
1818
} else if (key === 'value' && this.type === 'integer') {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"noUncheckedIndexedAccess": true,
1919
"exactOptionalPropertyTypes": true,
2020
"noImplicitOverride": true,
21-
"noPropertyAccessFromIndexSignature": false,
21+
"noPropertyAccessFromIndexSignature": true,
2222
"forceConsistentCasingInFileNames": true,
2323
"esModuleInterop": true,
2424
"skipLibCheck": true,

0 commit comments

Comments
 (0)