File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,14 @@ if (typeof window !== 'undefined' && typeof window.btoa === 'function') {
17
17
}
18
18
19
19
/**
20
- * @param {{ type: ' string' , [key: string]: any } } node
20
+ * @param {{ type: string, [key: string]: any } } node
21
21
* @param {PrintOptions } opts
22
22
* @returns {{ code: string, map: any } } // TODO
23
23
*/
24
24
export function print ( node , opts = { } ) {
25
25
if ( Array . isArray ( node ) ) {
26
26
return print (
27
27
{
28
- //@ts -expect-error
29
28
type : 'Program' ,
30
29
body : node ,
31
30
sourceType : 'module'
@@ -41,7 +40,7 @@ export function print(node, opts = {}) {
41
40
multiline : false
42
41
} ;
43
42
44
- handle ( /** @type {TSESTree.Node } */ ( /** @type { any } */ ( node ) ) , state ) ;
43
+ handle ( /** @type {TSESTree.Node } */ ( node ) , state ) ;
45
44
46
45
/** @typedef {[number, number, number, number] } Segment */
47
46
You can’t perform that action at this time.
0 commit comments