()
| 18 | * based on the "TargetVersion" enum. |
| 19 | */ |
| 20 | export function getAllVersionNames(): string[] { |
| 21 | return Object.keys(TargetVersion).filter(enumValue => { |
| 22 | return typeof (TargetVersion as Record<string, string | undefined>)[enumValue] === 'string'; |
| 23 | }); |
| 24 | } |