Skip to content

Commit 94d8868

Browse files
authored
fix(sdk): fix typescript TS1170 error on Typescript > 5.7.0 (#4208)
Signed-off-by: David Festal <[email protected]>
1 parent 2cb161e commit 94d8868

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tidy-planets-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/sdk': patch
3+
---
4+
5+
Fix a Typescript TS1170 error with the SDK on Typescript > 5.7.0

packages/sdk/src/constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const NameTransformSymbol = {
77
AT: '@',
88
HYPHEN: '-',
99
SLASH: '/',
10-
};
10+
} as const;
1111
export const NameTransformMap = {
1212
[NameTransformSymbol.AT]: 'scope_',
1313
[NameTransformSymbol.HYPHEN]: '_',

0 commit comments

Comments
 (0)