Skip to content

Commit

Permalink
Merge pull request #509 from cosmology-tech/fix-generated-type-file
Browse files Browse the repository at this point in the history
fix import in generated types file
  • Loading branch information
Zetazzz authored Nov 3, 2023
2 parents c79d977 + c689261 commit 1fcc5e9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __fixtures__/v-next/outputsign/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* and run the transpile command or yarn proto command to regenerate this bundle.
*/

import { BinaryReader, BinaryWriter } from "../../../binary";
import { BinaryReader, BinaryWriter } from "./binary";

/**
* A type generated by Telescope 1.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/telescope/src/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export * from './pinia-endpoint';
export * from './varint';
export * from './utf8-helper';
export * from './binary-coder';
export * from './types';
export * from './types-helper';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const types = `import { BinaryReader, BinaryWriter } from "../../../binary";
export const types = `import { BinaryReader, BinaryWriter } from "./binary";
/**
* A type generated by Telescope 1.0.
Expand Down
2 changes: 1 addition & 1 deletion packages/telescope/types/helpers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export * from './pinia-endpoint';
export * from './varint';
export * from './utf8-helper';
export * from './binary-coder';
export * from './types';
export * from './types-helper';
1 change: 1 addition & 0 deletions packages/telescope/types/helpers/types-helper.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const types = "import { BinaryReader, BinaryWriter } from \"./binary\";\n\n/**\n * A type generated by Telescope 1.0.\n */\nexport interface TelescopeGeneratedType {\n readonly typeUrl: string;\n readonly encode: (\n message:\n | any\n | {\n [k: string]: any;\n },\n writer?: BinaryWriter\n ) => BinaryWriter;\n readonly decode: (input: BinaryReader | Uint8Array, length?: number) => any;\n readonly fromPartial: (object: any) => any;\n}\n\nexport type GeneratedType = TelescopeGeneratedType;\n";

0 comments on commit 1fcc5e9

Please sign in to comment.