@@ -5,9 +5,9 @@ import { Project, Writers } from 'ts-morph'
55
66async function main ( ) {
77 const proj = new Project ( )
8- genTypes ( proj . createSourceFile ( './src/bot-api/ internal/types .gen.ts' , { } , { overwrite : true } ) )
9- genMethods ( proj . createSourceFile ( './src/bot-api/ internal/methods .gen.ts' , { } , { overwrite : true } ) )
10- genBotApi ( proj . createSourceFile ( './src/bot-api/ internal/botApi .gen.ts' , { } , { overwrite : true } ) )
8+ genTypes ( proj . createSourceFile ( './src/internal/botApiTypes .gen.ts' , { } , { overwrite : true } ) )
9+ genMethods ( proj . createSourceFile ( './src/internal/botApiMethods .gen.ts' , { } , { overwrite : true } ) )
10+ genBotApiShape ( proj . createSourceFile ( './src/internal/botApiShape .gen.ts' , { } , { overwrite : true } ) )
1111 await proj . save ( )
1212}
1313
@@ -49,12 +49,12 @@ function genMethods(f: SourceFile): void {
4949 inputFile : 'InputFile' ,
5050 }
5151 f . addImportDeclaration ( {
52- moduleSpecifier : './types .gen.ts' ,
52+ moduleSpecifier : './botApiTypes .gen.ts' ,
5353 isTypeOnly : true ,
5454 namespaceImport : 'Types' ,
5555 } )
5656 f . addImportDeclaration ( {
57- moduleSpecifier : '../InputFile .ts' ,
57+ moduleSpecifier : './inputFile .ts' ,
5858 isTypeOnly : true ,
5959 namedImports : [ 'InputFile' ] ,
6060 } )
@@ -93,7 +93,7 @@ function genMethods(f: SourceFile): void {
9393 }
9494}
9595
96- function genBotApi ( f : SourceFile ) : void {
96+ function genBotApiShape ( f : SourceFile ) : void {
9797 f . addImportDeclarations ( [
9898 {
9999 isTypeOnly : true ,
@@ -104,7 +104,7 @@ function genBotApi(f: SourceFile): void {
104104 f . addInterface ( {
105105 isExported : true ,
106106 isDefaultExport : false ,
107- name : 'BotApi ' ,
107+ name : 'BotApiShape ' ,
108108 properties : Object
109109 . values ( methods )
110110 . map ( ( { name, description } ) => ( {
0 commit comments