sodium-javascript icon indicating copy to clipboard operation
sodium-javascript copied to clipboard

Add TypeScript

Open VityaSchel opened this issue 1 year ago • 1 comments

VityaSchel avatar Feb 16 '24 20:02 VityaSchel

For now use @types/sodium-native:

  1. copy everything to sodium.d.ts in your project
  2. include it into declare module 'sodium-javascript' { /*...copied types...*/ }
  3. add 'sodium.d.ts' to tsconfig.json

VityaSchel avatar Feb 16 '24 20:02 VityaSchel