Skip to content

Commit 42e191d

Browse files
committed
loosen types
1 parent 88a5621 commit 42e191d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"types": "./types/index.d.ts",
2121
"devDependencies": {
22+
"@typescript-eslint/types": "^8.2.0",
2223
"@vitest/ui": "^2.1.1",
2324
"acorn": "^8.11.3",
2425
"acorn-typescript": "^1.4.13",
@@ -37,8 +38,7 @@
3738
},
3839
"license": "MIT",
3940
"dependencies": {
40-
"@jridgewell/sourcemap-codec": "^1.4.15",
41-
"@typescript-eslint/types": "^8.2.0"
41+
"@jridgewell/sourcemap-codec": "^1.4.15"
4242
},
4343
"packageManager": "[email protected]"
4444
}

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.

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (typeof window !== 'undefined' && typeof window.btoa === 'function') {
1717
}
1818

1919
/**
20-
* @param {TSESTree.Node} node
20+
* @param {{ type: 'string', [key: string]: any }} node
2121
* @param {PrintOptions} opts
2222
* @returns {{ code: string, map: any }} // TODO
2323
*/
@@ -41,7 +41,7 @@ export function print(node, opts = {}) {
4141
multiline: false
4242
};
4343

44-
handle(node, state);
44+
handle(/** @type {TSESTree.Node} */ (/** @type {any} */ (node)), state);
4545

4646
/** @typedef {[number, number, number, number]} Segment */
4747

0 commit comments

Comments
 (0)