Skip to content

Commit d8b5f18

Browse files
committed
Add explicit return type
1 parent 5e77981 commit d8b5f18

File tree

1 file changed

+5
-2
lines changed
  • packages/graphql-language-service-server/src/parsers

1 file changed

+5
-2
lines changed

packages/graphql-language-service-server/src/parsers/babel.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
import { parse, ParserPlugin } from '@babel/parser';
1+
import { parse, ParseResult, ParserPlugin } from '@babel/parser';
22
import { BABEL_PLUGINS, PARSER_OPTIONS } from '../constants';
33
import { SourceParser } from './types';
44

5-
export const babelParser = (text: string, plugins?: ParserPlugin[]) => {
5+
export const babelParser = (
6+
text: string,
7+
plugins?: ParserPlugin[],
8+
): ParseResult => {
69
const babelPlugins = [...BABEL_PLUGINS];
710
if (plugins) {
811
babelPlugins.push(...plugins);

0 commit comments

Comments
 (0)