Skip to content

Commit 57bc620

Browse files
committed
Minor changes
1 parent fa55e66 commit 57bc620

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rocket-chatter-ingestion-server/src/process/prepare/processor/core/typeAnnotation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export namespace TypeAnnotation {
3434
}
3535

3636
// Handle parameters of the function
37-
for (const t of (type as any).params) {
37+
for (const t of (type as any).params ?? []) {
3838
flatten((t as any).typeAnnotation).forEach((x) => typeArguments.add(x))
3939
}
4040
}

rocket-chatter-ingestion-server/src/process/prepare/processor/syntax/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export namespace Interface {
8585
}
8686

8787
// Check for the params type params (recursive)
88-
for (const p of (m as any).params) {
88+
for (const p of (m as any).params ?? []) {
8989
node.pushUse(
9090
...TypeAnnotation.flatten(p.typeAnnotation ?? []).map((t) => ({
9191
name: t,

0 commit comments

Comments
 (0)