Skip to content

Commit 4a9eb0f

Browse files
committed
TypeScript: Add tests for OptionalTypeExpr and RestTypeExpr
1 parent 241ce10 commit 4a9eb0f

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| tst.ts:133:48:133:54 | number? | tst.ts:133:48:133:53 | number |
2+
| tst.ts:136:48:136:54 | string? | tst.ts:136:48:136:53 | string |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import javascript
2+
3+
from OptionalTypeExpr type
4+
select type, type.getElementType()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| tst.ts:135:36:135:46 | ...string[] | tst.ts:135:39:135:46 | string[] | tst.ts:135:39:135:44 | string |
2+
| tst.ts:136:57:136:67 | ...number[] | tst.ts:136:60:136:67 | number[] | tst.ts:136:60:136:65 | number |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import javascript
2+
3+
from RestTypeExpr rest
4+
select rest, rest.getArrayType(), rest.getElementType()

0 commit comments

Comments
 (0)