Skip to content

Commit

Permalink
fix: 'TargetLanguage' has no exported member 'VISUALIZ…
Browse files Browse the repository at this point in the history
…E' (backport #1238) (#1240)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.1`:
- [fix: 'TargetLanguage' has no exported member
'VISUALIZE'
(#1238)](#1238)

<!--- Backport version: 9.3.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
  • Loading branch information
aws-cdk-automation and mrgrain committed Apr 26, 2024
1 parent dc744a0 commit 1953645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/languages/target-language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export enum TargetLanguage {

const VALID_TARGET_LANGUAGES = new Set(Object.values(TargetLanguage));

export function targetName(language: TargetLanguage.PYTHON | TargetLanguage.VISUALIZE): 'python';
/** @internal an alias of PYTHON to make intent clear when language is irrelevant */
export function targetName(language: TargetLanguage.VISUALIZE): 'python';
export function targetName(language: TargetLanguage.PYTHON): 'python';
export function targetName(language: TargetLanguage.CSHARP): 'dotnet';
export function targetName(language: TargetLanguage.JAVA): 'java';
export function targetName(language: TargetLanguage.GO): 'go';
Expand Down

0 comments on commit 1953645

Please sign in to comment.