Skip to content

Commit c27eea7

Browse files
committed
Added "any" test cases
1 parent 5594a03 commit c27eea7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

tests/test-cases/any/input.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export interface PublicInterface {
2+
field: any;
3+
}
4+
5+
interface InternalInterface {
6+
field: any;
7+
}
8+
9+
/** @public */
10+
interface PublicByJSDocInterface {
11+
field: any;
12+
}
13+
14+
function func(obj1: PublicInterface, obj2: InternalInterface, obj3: PublicByJSDocInterface): void {
15+
console.log(obj1.field.f1Any, obj2.field.f2Any, obj3.field.f3Any);
16+
}

tests/test-cases/any/output.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
function func(obj1, obj2, obj3) {
4+
console.log(obj1.field.f1Any, obj2._internal_field.f2Any, obj3.field.f3Any);
5+
}

0 commit comments

Comments
 (0)