Fix return type

This commit is contained in:
Andy Hanson
2017-12-11 06:50:55 -08:00
parent b554a3691d
commit 153cc7d059

View File

@@ -3262,7 +3262,7 @@ namespace ts {
}
}
export function singleElementArray<T>(t: T | undefined): T[] {
export function singleElementArray<T>(t: T | undefined): T[] | undefined {
return t === undefined ? undefined : [t];
}
}