mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix return type
This commit is contained in:
1 parent
b554a3691d
commit
153cc7d059
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user