Skip to content

Commit 84ab112

Browse files
committed
Fixed up type errors
1 parent aa9695a commit 84ab112

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

__tests__/presentation-4-parser/traverse.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { readFileSync } from 'node:fs';
2-
import { join } from 'node:path';
3-
import { cwd } from 'node:process';
4-
import { describe, expect, test } from 'vitest';
5-
import { Traverse } from '../../src/presentation-4';
1+
import { readFileSync } from "node:fs";
2+
import { join } from "node:path";
3+
import { cwd } from "node:process";
4+
import { describe, expect, test } from "vitest";
5+
import { Traverse } from "../../src/presentation-4";
66

7-
describe('presentation-4 traverse', () => {
8-
test('dispatches callbacks across mixed resource types', () => {
7+
describe("presentation-4 traverse", () => {
8+
test("dispatches callbacks across mixed resource types", () => {
99
const fixture = JSON.parse(
10-
readFileSync(join(cwd(), 'fixtures/presentation-4/21-scene-within-canvas.json'), 'utf8')
10+
readFileSync(join(cwd(), "fixtures/presentation-4/21-scene-within-canvas.json"), "utf8")
1111
);
1212

13-
const seen: Record<string, number> = {
13+
const seen = {
1414
manifest: 0,
1515
scene: 0,
1616
canvas: 0,
@@ -32,7 +32,7 @@ describe('presentation-4 traverse', () => {
3232
contentResource: [() => void (seen.contentResource += 1)],
3333
});
3434

35-
traverse.traverseUnknown(fixture, { path: '$' });
35+
traverse.traverseUnknown(fixture, { path: "$" });
3636

3737
expect(seen.manifest).toBeGreaterThan(0);
3838
expect(seen.scene).toBeGreaterThan(0);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"devDependencies": {
171171
"@happy-dom/global-registrator": "^20.6.1",
172172
"@hyperion-framework/validator": "^1.1.0",
173-
"@types/node": "^22",
173+
"@types/node": "^22.19.11",
174174
"prettier": "^3.8.1",
175175
"publint": "^0.3.17",
176176
"tsdown": "^0.20.3",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"strict": true,
1818
"target": "ES2022",
1919
"allowJs": true,
20-
"types": ["vitest/globals"]
20+
"types": ["vitest/globals", "@types/node"]
2121
},
2222
"include": ["./src/**/*", "./src/*", "./__tests__/**/*", "./demos/**/*", "./fixtures/**/*"],
2323
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)