quicktype
quicktype copied to clipboard
TypeScript error: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later..
npm install @solana/spl-token-registry
npm_config_yes=true npx quicktype node_modules/@solana/spl-token-registry/dist/main/lib/tokenlist.d.ts -o src/models.rs
Output:
Error: TypeScript error: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later..
https://github.com/solana-labs/token-list/blob/main/src/lib/tokenlist.ts