-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a735ef
commit b92fd8c
Showing
10 changed files
with
55 additions
and
58 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
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
7 changes: 7 additions & 0 deletions
7
packages/parser/src/utils/imports.ts → packages/parser/src/utils/babel.ts
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,5 @@ | ||
export * from './proto'; | ||
export * from './files'; | ||
export * from './imports'; | ||
export * from './generate'; | ||
export * from './utils'; | ||
export * from './babel'; | ||
export * from './deps'; | ||
export * from './types'; | ||
export * from './meta'; |
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,6 +1,6 @@ | ||
import { Enum } from '@launchql/protobufjs'; | ||
import * as t from '@babel/types'; | ||
export declare const transformEnumToAST: (enumData: Enum) => t.ExportNamedDeclaration; | ||
export declare const buildEnumNamedImports: (enums: Enum[], source: string) => t.ImportDeclaration; | ||
export declare const transformEnumToTypeUnionAST: (enumData: Enum) => t.ExportNamedDeclaration; | ||
export declare const buildEnumValueFunctionAST: (enumData: Enum[]) => t.ExportNamedDeclaration[]; | ||
export declare const convertEnumToTsEnumDeclaration: (enumData: Enum) => t.ExportNamedDeclaration; | ||
export declare const generateEnumImports: (enums: Enum[], source: string) => t.ImportDeclaration; | ||
export declare const convertEnumToTsUnionType: (enumData: Enum) => t.ExportNamedDeclaration; | ||
export declare const generateEnumValueFunctions: (enumData: Enum[]) => t.ExportNamedDeclaration[]; |
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,9 @@ | ||
import { Type } from '@launchql/protobufjs'; | ||
import * as t from '@babel/types'; | ||
import { PgProtoParserOptions } from '../../options'; | ||
export declare const buildTypeNamedImports: (types: Type[], source: string, suffix?: string) => t.ImportDeclaration; | ||
export declare const createAstHelperMethodsAST: (types: Type[]) => t.ExportDefaultDeclaration; | ||
export declare const createNodeUnionTypeAST: (types: Type[]) => t.ExportNamedDeclaration; | ||
export declare const transformTypeToTSInterface: (type: Type, options: PgProtoParserOptions) => t.ExportNamedDeclaration; | ||
export declare const transformTypeToTSWrappedInterface: (type: Type, options: PgProtoParserOptions) => t.ExportNamedDeclaration; | ||
export declare const generateImportSpecifiersAST: (types: Type[], options: PgProtoParserOptions) => t.ImportDeclaration; | ||
export declare const generateTypeImports: (types: Type[], source: string, suffix?: string) => t.ImportDeclaration; | ||
export declare const generateAstHelperMethods: (types: Type[]) => t.ExportDefaultDeclaration; | ||
export declare const generateNodeUnionType: (types: Type[]) => t.ExportNamedDeclaration; | ||
export declare const convertTypeToTsInterface: (type: Type, options: PgProtoParserOptions) => t.ExportNamedDeclaration; | ||
export declare const convertTypeToWrappedTsInterface: (type: Type, options: PgProtoParserOptions) => t.ExportNamedDeclaration; | ||
export declare const generateTypeImportSpecifiers: (types: Type[], options: PgProtoParserOptions) => t.ImportDeclaration; |