File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ import {
1818 DeclarationNameLink ,
1919} from "./utils/styles" ;
2020
21- const alignmentToType : Record < number , string > = {
22- 1 : "uint8" ,
23- 2 : "uint16" ,
24- 4 : "uint32" ,
25- 8 : "uint64" ,
26- } ;
27-
2821const EnumTypeWrapper = styled . span `
2922 font-size: 16px;
3023 font-weight: normal;
@@ -78,7 +71,7 @@ export const SchemaEnumView: React.FC<{
7871 { declaration . name }
7972 </ DeclarationNameLink >
8073 < EnumTypeWrapper >
81- : { alignmentToType [ declaration . alignment ] ?? `unknown( ${ declaration . alignment } )` }
74+ : { declaration . alignment }
8275 </ EnumTypeWrapper >
8376 < ModuleBadge module = { declaration . module } />
8477 </ CommonGroupSignature >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface SchemaEnum {
3939 kind : "enum" ;
4040 name : string ;
4141 module : string ;
42- alignment : number ;
42+ alignment : string ;
4343 members : SchemaEnumMember [ ] ;
4444 metadata : SchemaMetadataEntry [ ] ;
4545}
You can’t perform that action at this time.
0 commit comments