Skip to content

Commit 6a79781

Browse files
committed
fix build:
1 parent 6e77e1b commit 6a79781

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: app/api/repo/route.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ import { Graph, RedisClientType, RedisDefaultModules, createClient } from 'falko
1313
// Tree-Sitter queries
1414
//-----------------------------------------------------------------------------
1515

16-
let parser;
16+
let parser: Parser;
1717

1818
// class definition tree-sitter query
1919
// responsible for matching class definition, in addition to extracting the class name
20-
let class_definition_query;
20+
let class_definition_query: Parser.Query;
2121

2222
// function definition tree-sitter query
2323
// responsible for matching function definition, in addition to extracting the function name
24-
let function_definition_query;
24+
let function_definition_query: Parser.Query;
2525

2626
// function call tree-sitter query
2727
// responsible for matching function calls, in addition to extracting the callee function name
28-
let function_call_query;
28+
let function_call_query: Parser.Query;
2929

3030
// Process Python file (Module)
31-
function processPythonSource(source_file) {
31+
function processPythonSource(source_file: string) {
3232
// read file
3333
fs.readFile(source_file, 'utf8', function (err: any, source: string) {
3434
if (err) {
@@ -49,7 +49,7 @@ function processPythonSource(source_file) {
4949
}
5050

5151
// Process Class declaration
52-
function processClassDeclaration(source_file, match) {
52+
function processClassDeclaration(source_file: string, match: Parser.QueryMatch) {
5353
let class_node = match.captures[0].node;
5454
let class_name = match.captures[1].node.text;
5555
console.log("Class node: " + class_node);
@@ -63,7 +63,7 @@ function processClassDeclaration(source_file, match) {
6363
}
6464

6565
// Process function declaration
66-
function processFunctionDeclaration(source_file, match) {
66+
function processFunctionDeclaration(source_file: string, match: Parser.QueryMatch) {
6767
let function_node = match.captures[0].node;
6868
let function_name = match.captures[1].node.text;
6969
//console.log("Function definition Node: " + function_node);

0 commit comments

Comments
 (0)