diff --git a/__output__/builder/bundler_test/contracts/contracts-context.tsx b/__output__/builder/bundler_test/contracts/contracts-context.tsx index d972e515..74cb9c9f 100644 --- a/__output__/builder/bundler_test/contracts/contracts-context.tsx +++ b/__output__/builder/bundler_test/contracts/contracts-context.tsx @@ -13,7 +13,7 @@ import { import { IContractsContext, getProviders } from './contractContextProviders'; -interface ContractsConfig { +export interface ContractsConfig { address: string | undefined; getCosmWasmClient: () => Promise; getSigningCosmWasmClient: () => Promise; diff --git a/__output__/builder/default/contracts-context.tsx b/__output__/builder/default/contracts-context.tsx index d972e515..74cb9c9f 100644 --- a/__output__/builder/default/contracts-context.tsx +++ b/__output__/builder/default/contracts-context.tsx @@ -13,7 +13,7 @@ import { import { IContractsContext, getProviders } from './contractContextProviders'; -interface ContractsConfig { +export interface ContractsConfig { address: string | undefined; getCosmWasmClient: () => Promise; getSigningCosmWasmClient: () => Promise; diff --git a/packages/ts-codegen/src/helpers/contractsContextTSX.ts b/packages/ts-codegen/src/helpers/contractsContextTSX.ts index 03a439b6..a247f243 100644 --- a/packages/ts-codegen/src/helpers/contractsContextTSX.ts +++ b/packages/ts-codegen/src/helpers/contractsContextTSX.ts @@ -7,7 +7,7 @@ import { import { IContractsContext, getProviders } from './contractContextProviders'; -interface ContractsConfig { +export interface ContractsConfig { address: string | undefined; getCosmWasmClient: () => Promise; getSigningCosmWasmClient: () => Promise; diff --git a/packages/ts-codegen/src/plugins/provider-bundle.ts b/packages/ts-codegen/src/plugins/provider-bundle.ts index 7be51f1f..c99fa255 100644 --- a/packages/ts-codegen/src/plugins/provider-bundle.ts +++ b/packages/ts-codegen/src/plugins/provider-bundle.ts @@ -42,7 +42,7 @@ export class ContractsProviderBundlePlugin extends BuilderPluginBase(...args: any[]) => (context: TContext) => ImportObj); -export type UtilMapping = { +export declare type GetUtilFn = ((...args: any[]) => (context: TContext) => ImportObj); +export declare type UtilMapping = { [key: string]: ImportObj | string | GetUtilFn; }; export declare const UTILS: {