Shouldn't this work to get the public key according to the documentation? I tried the below code and get an error TypeError: wallet.publicKey is not a function. https://solana-labs.github.io/solana-web3.js/classes/Keypair.html
let wallet = solana_web3.Keypair.generate();
console.log(wallet.publicKey());
How do I get a copy of this https://solana-labs.github.io/solana-web3.js/classes/PublicKey.html from the generated wallet?