Skip to content

Commit

Permalink
fix: add type files
Browse files Browse the repository at this point in the history
  • Loading branch information
akasuv committed Sep 27, 2023
1 parent f27afee commit 0526ea3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion src/config/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,23 @@ export const opBnbTestnet = {
nativeCurrency: bscTestnet.nativeCurrency,
};

export const availableChains = {
// This is for TypeScript error: https://github.com/microsoft/TypeScript/issues/42873
const chainNames = [
"optimism",
"optimismGoerli",
"polygon",
"polygonMumbai",
"arbitrum",
"arbitrumGoerli",
"linea",
"lineaTestnet",
"base",
"baseGoerli",
"opBnb",
"opBnbTestnet",
] as const;

export const availableChains: Record<(typeof chainNames)[number], Chain> = {
optimism,
optimismGoerli,
polygon,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"skipLibCheck": true,
"checkJs": true,
"allowJs": true,
// "declaration": true,
// "declarationMap": true,
"declaration": true,
"declarationMap": true,
"allowSyntheticDefaultImports": true,
"strictPropertyInitialization": false
},
Expand Down

0 comments on commit 0526ea3

Please sign in to comment.