File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ let btoa = () => {
9
9
10
10
if ( typeof window !== 'undefined' && typeof window . btoa === 'function' ) {
11
11
btoa = ( str ) => window . btoa ( unescape ( encodeURIComponent ( str ) ) ) ;
12
- // @ts -expect-error
13
12
} else if ( typeof Buffer === 'function' ) {
14
- // @ts -expect-error
15
13
btoa = ( str ) => Buffer . from ( str , 'utf-8' ) . toString ( 'base64' ) ;
16
14
}
17
15
@@ -48,7 +46,7 @@ class SourceMap {
48
46
49
47
/**
50
48
* @template {BaseNode} [T=BaseNode]
51
- * @param {{ type: string, [key: string]: any } } node
49
+ * @param {T } node
52
50
* @param {Visitors<T> } visitors
53
51
* @param {PrintOptions } opts
54
52
* @returns {{ code: string, map: any } } // TODO
Original file line number Diff line number Diff line change @@ -1524,10 +1524,11 @@ export default (options = {}) => {
1524
1524
1525
1525
context . write ( '(' ) ;
1526
1526
1527
- // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
1528
1527
sequence (
1529
1528
context ,
1529
+ // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
1530
1530
node . parameters ,
1531
+ // @ts -expect-error `acorn-typescript` and `@typescript-eslint/types` have slightly different type definitions
1531
1532
node . typeAnnotation . typeAnnotation . loc ?. start ?? null ,
1532
1533
false
1533
1534
) ;
Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ import { tsPlugin } from '@sveltejs/acorn-typescript';
5
5
6
6
/** @import { TSESTree } from '@typescript-eslint/types' */
7
7
8
- // @ts -expect-error
9
- export const acornTs = acorn . Parser . extend ( tsPlugin ( { allowSatisfies : true } ) ) ;
10
- export const acornTsx = acorn . Parser . extend ( tsPlugin ( { allowSatisfies : true , jsx : true } ) ) ;
8
+ export const acornTs = acorn . Parser . extend ( tsPlugin ( ) ) ;
9
+ export const acornTsx = acorn . Parser . extend ( tsPlugin ( { jsx : true } ) ) ;
11
10
12
11
/** @param {string } input
13
12
* @param {{ jsx?: boolean } } opts
Original file line number Diff line number Diff line change 7
7
"target" : " esnext" ,
8
8
"module" : " esnext" ,
9
9
"moduleResolution" : " bundler" ,
10
- "lib" : [" esnext" , " dom" ]
10
+ "lib" : [" esnext" , " dom" ],
11
+ "skipLibCheck" : true
11
12
},
12
- "include" : [" ./src/**/*.js" ]
13
+ "include" : [" ./src/**/*.js" , " ./test/*.js " ]
13
14
}
You can’t perform that action at this time.
0 commit comments