Skip to content

Commit 1e5dc9a

Browse files
committed
fix
1 parent 42e191d commit 1e5dc9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.js

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

1919
/**
20-
* @param {{ type: 'string', [key: string]: any }} node
20+
* @param {{ type: string, [key: string]: any }} node
2121
* @param {PrintOptions} opts
2222
* @returns {{ code: string, map: any }} // TODO
2323
*/
2424
export function print(node, opts = {}) {
2525
if (Array.isArray(node)) {
2626
return print(
2727
{
28-
//@ts-expect-error
2928
type: 'Program',
3029
body: node,
3130
sourceType: 'module'
@@ -41,7 +40,7 @@ export function print(node, opts = {}) {
4140
multiline: false
4241
};
4342

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

4645
/** @typedef {[number, number, number, number]} Segment */
4746

0 commit comments

Comments
 (0)