-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve import collisions for enums (#339)
- Loading branch information
Showing
8 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
/* eslint-disable */ | ||
import { Simple as Simple1 } from './simple2'; | ||
import { SimpleEnum as SimpleEnum1, Simple as Simple2 } from './simple2'; | ||
|
||
export const protobufPackage = 'simple'; | ||
|
||
export enum SimpleEnum { | ||
LOCAL_DEFAULT = 0, | ||
LOCAL_FOO = 1, | ||
LOCAL_BAR = 2, | ||
UNRECOGNIZED = -1, | ||
} | ||
|
||
export interface Simple { | ||
name: string; | ||
otherSimple: Simple1 | undefined; | ||
otherSimple: Simple2 | undefined; | ||
} | ||
|
||
export interface SimpleEnums { | ||
localEnum: SimpleEnum; | ||
importEnum: SimpleEnum1; | ||
} |
Binary file modified
BIN
+213 Bytes
(170%)
integration/avoid-import-conflicts-types-only/simple2.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters