Skip to content

Commit aa9a936

Browse files
committed
Add test for array aliases.
1 parent 788370c commit aa9a936

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type MyFixedSizeArray = [string, number];
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "array",
4+
"items": [
5+
{"type": "string"},
6+
{"type": "number"}
7+
],
8+
"minItems": 2,
9+
"maxItems": 2
10+
}

test/programs/type-aliases/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type MyString = string;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "string"
4+
}

0 commit comments

Comments
 (0)