File tree Expand file tree Collapse file tree 2 files changed +280
-280
lines changed
Expand file tree Collapse file tree 2 files changed +280
-280
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function generateWrappedUnion(tags: string[]): string {
6868function generateTypeAlias ( nodeName : string , fieldName : string , tags : string [ ] ) : string {
6969 const aliasName = `${ nodeName } _${ fieldName } ` ;
7070 const union = generateWrappedUnion ( tags ) ;
71- return `export type ${ aliasName } = ${ union } ;` ;
71+ return `type ${ aliasName } = ${ union } ;` ;
7272}
7373
7474function generateInterface (
@@ -157,7 +157,7 @@ function generateTypes(metadata: AllFieldMetadata): string {
157157 }
158158
159159 if ( typeAliases . length > 0 ) {
160- lines . push ( '// Narrowed type aliases for Node-typed fields' ) ;
160+ lines . push ( '// Internal type aliases for narrowed Node-typed fields (not exported) ' ) ;
161161 lines . push ( typeAliases . join ( '\n' ) ) ;
162162 lines . push ( '' ) ;
163163 }
You can’t perform that action at this time.
0 commit comments