Skip to content

Commit

Permalink
feat(typegen): Fix test to reflect the type intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrault committed Aug 6, 2024
1 parent 6b80950 commit 07fd992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/output/default.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

declare module "translations" {
type Translations = {
"animals": { count: number | string };
"animals": { count: number | string | string | number };
"welcome": { name: string | number };
"age": { months: string | number; days: string | number };
"lorem": undefined;
Expand Down
2 changes: 1 addition & 1 deletion test/snapshot/default.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

declare module "translations" {
type Translations = {
"animals": { count: number | string };
"animals": { count: number };
"welcome": { name: string | number };
"age": { months: string | number; days: string | number };
"lorem": undefined;
Expand Down

0 comments on commit 07fd992

Please sign in to comment.