Skip to content

Commit 25a39d2

Browse files
committed
fix type error
1 parent 9f33bae commit 25a39d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sveltekit/src/vite/recastTypescriptParser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636

3737
import type { ParserPlugin } from '@babel/parser';
3838
import { parse as babelParse } from '@babel/parser';
39+
import type { Options } from 'recast';
3940

40-
export const parser = {
41+
export const parser: Options['parser'] = {
4142
parse: (source: string) =>
4243
babelParse(source, {
4344
plugins: [

0 commit comments

Comments
 (0)