Try to submit generateKey X25519 TypeScript issue
I develop my PWA app ateditors and eud that use Web Crypto. When I build production release. There are error and can not go through:
Property 'publicKey' does not exist on type 'CryptoKey | CryptoKeyPair'.
Property 'publicKey' does not exist on type 'CryptoKey'.Then I hack the VSCode extension and node_modules with the below code:
// /Applications/VSCodium.app/Contents/Resources/app/extensions/node_modules/typescript/lib/lib.dom.iterable.d.ts:384
// /Applications/VSCodium.app/Contents/Resources/app/extensions/node_modules/typescript/lib/lib.dom.d.ts:31691
// node_modules/typescript/lib/lib.dom.iterable.d.ts:384
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
That's work and no error when vite build.
I confirm the MDN document that be full support by browser on last year(2024: Firefox) or this year(2025: Chrome).
Then I decide to submit one issue to TypeScript project on github. Hope soon the issue can be noticed by developer of TypeScript and I can don't hack my local extension and node modules.

62