File tree Expand file tree Collapse file tree 2 files changed +275
-138
lines changed
Expand file tree Collapse file tree 2 files changed +275
-138
lines changed Original file line number Diff line number Diff line change @@ -1068,6 +1068,7 @@ declare module td {
10681068 GetSignature = 524288 ,
10691069 SetSignature = 1048576 ,
10701070 ObjectLiteral = 2097152 ,
1071+ TypeAlias = 4194304 ,
10711072 ClassOrInterface ,
10721073 VariableOrProperty ,
10731074 FunctionOrMethod ,
@@ -1998,6 +1999,35 @@ declare module td {
19981999 toString ( ) : string ;
19992000 }
20002001}
2002+ declare module td {
2003+ /**
2004+ * Represents an union type.
2005+ *
2006+ * ~~~
2007+ * var value:string | string[];
2008+ * ~~~
2009+ */
2010+ class UnionType extends Type {
2011+ /**
2012+ * The types this union consists of.
2013+ */
2014+ types : Type [ ] ;
2015+ /**
2016+ * Create a new TupleType instance.
2017+ *
2018+ * @param types The types this union consists of.
2019+ */
2020+ constructor ( types : Type [ ] ) ;
2021+ /**
2022+ * Return a raw object representation of this type.
2023+ */
2024+ toObject ( ) : any ;
2025+ /**
2026+ * Return a string representation of this type.
2027+ */
2028+ toString ( ) : string ;
2029+ }
2030+ }
20012031declare module td {
20022032 /**
20032033 * Represents all unknown types.
You can’t perform that action at this time.
0 commit comments