Skip to content

Commit

Permalink
fix: remove promise types on generated chains
Browse files Browse the repository at this point in the history
  • Loading branch information
grikomsn committed Jun 17, 2023
1 parent 39f029e commit cdf8794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/graz/stubs/chains-generated.ts.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export type MainnetChainName = "REPLACE_MAINNET_CHAIN_NAME";
export type TestnetChainName = "REPLACE_TESTNET_CHAIN_NAME";
export type ChainName = MainnetChainName | TestnetChainName;
export interface ChainData {
assetlist: Promise<AssetList>;
chain: Promise<Chain>;
chainInfo: Promise<ChainInfo>;
assetlist: AssetList;
chain: Chain;
chainInfo: ChainInfo;
}
export type ReturnTuple<T> = T extends readonly [ChainName, ...infer Rest] ? [ChainData, ...ReturnTuple<Rest>] : [];

Expand Down

0 comments on commit cdf8794

Please sign in to comment.