I am following the Solana docs: "Example: Create a mint with metadata"using Javascript.
Why does an error say that "TokenMetadata" is not an export"?
It also said that this kind of action is only allowed in typescript, which I would rather not use. Is there an option for Javascript and why is it saying "not an export"? I used the entire exact code in the Solana docs and imported all required including from @solana/spl-token-metadata
(referring to the code piece below):
const metadata: TokenMetadata = { mint: mint.publicKey, name: 'TOKEN_NAME', symbol: 'SMBL', uri: 'URI', additionalMetadata: [['new-field', 'new-value']], };